Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Densify appends [0, 0, 0] vertices? #1114

Open
jonnymaserati opened this issue May 8, 2024 · 1 comment
Open

Densify appends [0, 0, 0] vertices? #1114

jonnymaserati opened this issue May 8, 2024 · 1 comment
Labels
bug long-term longer term tricky fix or enhancement

Comments

@jonnymaserati
Copy link

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))
          ]
      )
@marcomusy
Copy link
Owner

Yes - I don't understand what's going on there - it looks indeed a bug in the vtkDensifyPointCloudFilter..

@marcomusy marcomusy added bug long-term longer term tricky fix or enhancement labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug long-term longer term tricky fix or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants