mikedh / trimesh

Python library for loading and using triangular meshes.

Home Page:https://trimesh.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GMSH stops on module 'gmsh' has no attribute 'isInitialized'.

rafcon-dev opened this issue · comments

Hey. I'm trying to get gmsh to work to import a step file. However, this simple code does not work:

import numpy as np
import trimesh
trimesh.util.attach_to_log()
mesh = trimesh.interfaces.gmsh.load_gmsh('trimesh/models/BREP/base_interface_AP203.STEP')

As it stops on this:

Traceback (most recent call last): File "c:\projects\blenderstl\main.py", line 32, in <module> mesh = trimesh.interfaces.gmsh.load_gmsh('trimesh/models/BREP/base_interface_AP203.STEP') File "C:\Python310\lib\site-packages\trimesh\interfaces\gmsh.py", line 79, in load_gmsh if not gmsh.isInitialized(): AttributeError: module 'gmsh' has no attribute 'isInitialized'. Did you mean: 'initialize'?

Am I missing something obvious?