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

Poisson outputs only vertices rather the mesh itself? #1553

Closed
y22ma opened this issue Apr 5, 2017 · 4 comments
Closed

Poisson outputs only vertices rather the mesh itself? #1553

y22ma opened this issue Apr 5, 2017 · 4 comments

Comments

@y22ma
Copy link

y22ma commented Apr 5, 2017

Seems like an odd choice, considering poisson reconstruction is intended for computing a surface model (mesh) rather than pointclouds.

Is there plan to add the ability to output a mesh file (stl, obj, etc)?

@abellgithub
Copy link
Contributor

Yes. I'm not sure why we're doing what we're currently doing. @chambbj ?

@chambbj
Copy link
Member

chambbj commented Apr 6, 2017

@y22ma We are not using the surface reconstruction filters at the moment. I added them some time ago now, mostly as an exercise. That being said, you should be able to put something together using existing PCL capabilities, e.g., https://github.com/PointCloudLibrary/pcl/blob/master/io/include/pcl/io/obj_io.h#L333-L342. Patches and other insights into how PDAL can better support this type of application are always welcome.

@abellgithub
Copy link
Contributor

Fixed with new filters.poisson.

@khelkun
Copy link

khelkun commented Jun 28, 2023

Fixed with new filters.poisson.

@abellgithub
I guess it's fixed but the meshing exercise confused me. With this exercise, one obtains a PLY which does not contain a surface mesh but a point cloud.

One must add the --writers.ply.faces=true to obtain a surface mesh PLY:

pdal translate -i ./exercises/analysis/clipping/stadium.copc.laz \
-o ./exercises/analysis/meshing/first-mesh.ply \
poisson --filters.poisson.depth=16 \
--writers.ply.faces=true \
--verbose 4

Or it worked out for me with the equivalent pipeline:

[
    "./exercises/analysis/clipping/stadium.copc.laz",
    {
        "type":"filters.poisson"
    },
    {
        "type":"writers.ply",
        "faces":true,
        "filename":"./exercises/analysis/meshing/first-mesh.ply"
    }
]

N.B: with the pipeline the default value is 8 for the depth option of the poisson filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants