-
Notifications
You must be signed in to change notification settings - Fork 26
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
Problems creating a Skeleton #7
Comments
Hi. Re the Re the skeletonization results:
I honestly never tried skeletonizing a mesh like yours and I would not be surprised if the default parameters just don't work for it. If you could share the Best, |
Thanks for your quick response! My Numpy version is 1.18.5 but I just upgraded it to 1.19.3 - problem still consists. Thanks for the tips, I will have a look at it next week and come back to you with my results! Attached you can find my .stl I used with the code. Have a nice weekend! |
OK, not sure where the np.float128 issue is coming from (possibly platform dependent?) but I'll drop that bit from the code in the next version. Re your mesh: I haven't played around with the parameters much - maybe you can squeeze out a bit more: import trimesh as tm
import skeleton as sk
m = tm.load('Multidirectional_Advanced_remesh.stl')
fixed = sk.utilities.fix_mesh(m, fix_normals=True)
cont = sk.contract(fixed, SL=10, WH0=1, validate=True, iter_lim=10, operator='umbrella', epsilon=0.05) |
Thanks a lot for trying it - looks a lot better, but still not perfect. Maybe I can reach my goal by adjusting the parameters. Unfortunately I didn't have time to come back to this problem yet. But I will do my best to try it next week or the week after and let you know about my results :) |
Hello,
I searched for 2 full days for python modules which support creating a medial axis of a 3 dimensional mesh. Your repository was the only one I found and it looks quite promising. Unfortunately it doesn't seem to work for me as I expect it - although I tried changing the input parameters:
Also I receive the following error when trying to use the method "edge_collapse" instead of "vertex_clusters": "AttributeError: module 'numpy' has no attribute 'float128'".
Here is the code I used.. What am I doing wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered: