vedo
vedo copied to clipboard
Densify appends [0, 0, 0] vertices?
Seems like the densify method for a point cloud adds rogue [0, 0, 0] points into the new point cloud. Can't see anything obvious in your code so it might be the underlying vtk issue. The more iterations that are done, the more rogue points get added.
A quick fix for a point cloud called surface
:
Points(
[
vert for vert in (
surface.densify(
target_distance=20,
niter=10
).vertices
) if not np.array_equal(vert, np.zeros(3))
]
)