LiangliangNan / Easy3D

A lightweight, easy-to-use, and efficient C++ library for processing and rendering 3D data
GNU General Public License v3.0
1.37k stars 245 forks source link

Question regarding primitive extraction #190

Closed Sheradil closed 2 months ago

Sheradil commented 2 months ago

Hello,

I usually use Poisson Reconstruction to get meshes from point clouds, but at least in my opinion the poisson reconstruction fails to capture hard edges, like 90 degree angles present in houses, boxes etc.

One of my work students found the PolyFit paper and for our use case that looks very promising, because we mostly have sharp edges. Now I downloaded PolyFit and realized that I have to generate the bvg files before I can use PolyFit (as it does not allow ply files and can't generate the planes on it's own). Then I came here and it took some time to find the "RANSAC primitive extraction" which should give me the planes that I am looking for (am I correct?). And the README of PolyFit says: You can save the planes in bvg (Binary Vertex Group) format. The ASCII format vg also works but is slow. Please note, PolyFit assumes that the model is closed and all necessary planes are provided.

Now, my question is: How do I save them so that I can use them in PolyFit? Under File->Save I only have "Surface Mesh", "Point Cloud", "Polyhedral Mesh" and "Graph". To me that all seems to be the wrong option.

LiangliangNan commented 2 months ago

The "bvg" is a kind of point cloud, so you can use the point cloud option.

Best,

Liangliang


From: Christopher @.> Sent: Tuesday, July 30, 2024 7:21:37 PM To: LiangliangNan/Easy3D @.> Cc: Subscribed @.***> Subject: [LiangliangNan/Easy3D] Question regarding primitive extraction (Issue #190)

Hello,

I usually use Poisson Reconstruction to get meshes from point clouds, but at least in my opinion the poisson reconstruction fails to capture hard edges, like 90 degree angles present in houses, boxes etc.

One of my work students found the PolyFit paper and for our use case that looks very promising, because we mostly have sharp edges. Now I downloaded PolyFit and realized that I have to generate the bvg files before I can use PolyFit (as it does not allow ply files and can't generate the planes on it's own). Then I came here and it took some time to find the "RANSAC primitive extraction" which should give me the planes that I am looking for (am I correct?). And the README of PolyFit says: You can save the planes in bvg (Binary Vertex Group) format. The ASCII format vg also works but is slow. Please note, PolyFit assumes that the model is closed and all necessary planes are provided.

Now, my question is: How do I save them so that I can use them in PolyFit? Under File->Save I only have "Surface Mesh", "Point Cloud", "Polyhedral Mesh" and "Graph". To me that all seems to be the wrong option.

— Reply to this email directly, view it on GitHubhttps://github.com/LiangliangNan/Easy3D/issues/190, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADWOVCCKAIFMANDWP7Q6M6DZO5ZMDAVCNFSM6AAAAABLWE2UZSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZTONJZGAYTENI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Sheradil commented 2 months ago

Thanks for your quick response.

Ok, that makes sense, I just expected different behaviour.