ImportError: The mesh_to_sdf package must be imported before OpenGL is imported.
Closed this issue · 1 comments
DONGTING98 commented
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
what should I do?
Thanks a lot.
EricWang12 commented
How did you solve this problem?