marian42/mesh_to_sdf

ImportError: The mesh_to_sdf package must be imported before OpenGL is imported.

Closed this issue · 1 comments

Hello!

I am trying to use mesh_to_voxels
from mesh_to_sdf import mesh_to_voxels
import trimesh
import pyrender

mesh = trimesh.load(file)
voxels = mesh_to_voxels(mesh, 64, pad=True)
vv, ff, nn, _ = skimage.measure.marching_cubes(vv,level=0)
mesh0 = trimesh.Trimesh(vv,ff,nn)
mesh0.show()

and it shows some error
image
image
what should I do?

Thanks a lot.

How did you solve this problem?