Xelawk / mesh_utils

MIT License
14 stars 3 forks source link

AttributeError: 'Scene' object has no attribute 'area_faces' #2

Open nikste opened 1 week ago

nikste commented 1 week ago

Trying to run this with:

    import trimesh
    mesh = trimesh.load_mesh(str(file_path_input))
    samples, face_idx, colors = trimesh.sample.sample_surface(mesh, 50000, sample_color=True)

results in this error:


    face_weight = mesh.area_faces
AttributeError: 'Scene' object has no attribute 'area_faces' ```

Am I doing something wrong or does this code not work anymore with version 0.18.0 of open3d?
Xelawk commented 1 week ago

Sorry, I have forgotten which version I used initially, but you can try using the version of Open3D released in 2021