vedo icon indicating copy to clipboard operation
vedo copied to clipboard

Densify appends [0, 0, 0] vertices?

Open jonnymaserati opened this issue 9 months ago • 1 comments

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))
          ]
      )

jonnymaserati avatar May 08 '24 13:05 jonnymaserati