You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks a lot for the great library!
I try to run sample code in terminal of ubuntu, but I just can't get proper result.
'''
from mesh_to_sdf import mesh_to_voxels
thanks a lot for the great library!
![86411d7aaba8b428954615532ecece9](https://user-images.githubusercontent.com/63949853/153750243-187513d6-5066-49e9-aa06-bd5b7112e84e.png)
I try to run sample code in terminal of ubuntu, but I just can't get proper result.
'''
from mesh_to_sdf import mesh_to_voxels
import trimesh
import skimage
mesh = trimesh.load('chair.obj')
voxels = mesh_to_voxels(mesh, 64, pad=True)
vertices, faces, normals, _ = skimage.measure.marching_cubes(voxels, level=0)
![2cbba96d0562cabbc6b0900ce35b0e1](https://user-images.githubusercontent.com/63949853/153750276-dcb59fe4-1ed0-4ba0-a807-515a3e04c554.png)
mesh = trimesh.Trimesh(vertices=vertices, faces=faces, vertex_normals=normals)
mesh.show()
'''
'''
from mesh_to_sdf import sample_sdf_near_surface
import trimesh
import pyrender
import numpy as np
mesh = trimesh.load('chair.obj')
points, sdf = sample_sdf_near_surface(mesh, number_of_points=250000)
colors = np.zeros(points.shape)
colors[sdf < 0, 2] = 1
colors[sdf > 0, 0] = 1
cloud = pyrender.Mesh.from_points(points, colors=colors)
scene = pyrender.Scene()
scene.add(cloud)
viewer = pyrender.Viewer(scene, use_raymond_lighting=True, point_size=2)
'''
I'm totally a noob there, and I'm wondering what's wrong with it.
someone can help?
I'll greatly apprieciate your help😭
The text was updated successfully, but these errors were encountered: