-
Notifications
You must be signed in to change notification settings - Fork 38
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
How to get edge information? #16
Comments
Hi, CloudCompare (and also many other tools like MeshLab) is mainly for processing point clouds and meshes, and thus they don't support certain types of primitives like 'edge' or 'segment'.
Then if you scroll down the file, you will see:
In each line, the first number '2' (type uchar) tells us this edge property has a list of two 'int' values. These two integer values are the indices of the two endpoints of this edge. In the above, I show an ASCII file, while AdTree uses binary PLY format by default. You can simply change its behavior by modifying this line of code. If you just want to visualize the skeletons (instead of writing your viewer), you can use my other program Mapple (or one of the example viewers in Easy3D). Hope this helps. |
Thank you for your help, that's great to know! I had been previously visualizing skeletons in cloudcompare using very thin cylindrical meshes (hacky but functional...), I hadn't realized there were these edge attributes. It looks like there's a python library that can read the edge attributes (https://github.com/dranjan/python-plyfile), I wasn't able to read them into the standard formats in open3d which is mostly what I've been using. As a follow-up question, is the radius information available somewhere? I think that's the last piece of the puzzle. |
Wow, thank you! Very much appreciated. I will take a look at building AdTree from source and see if I can get that working! |
Thank you so much for the support! I'm seriously impressed with the AdTree setup and maintenance, it just built cleanly immediately and radius shows right up in the saved ply files. Going above and beyond!
|
I received the following question from GitHub notification (but it doesn't appear here).
The fitted radius values (as a per-vertex attribute) are already in the exported PLY file. |
This is just a question, not exactly an issue. The linux executable is great, and ran immediately. When I look at the saved skeleton output though, it appears to be a pointcloud only (image below). One of the important parts of a skeleton is the connectivity information between various points. Is it possible to view/access that connectivity information somehow?
Here's the tree I'm starting with:
And the resulting
ply
file from "Export skeleton" visualized in CloudCompare:The text was updated successfully, but these errors were encountered: