-
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
Cannot show the skeleton path #27
Comments
Hi. You have me a bit confused. From your example,
|
One addendum: the 3D plot (i.e. what you get from |
@schlegelp Thanks for your response. I tried to use Path3D.show(), but I cannot see the path on the plot with zooming in or out. |
Here is the code I am using now. It still gave blank plot. |
Sorry, I think we're crossing wires here. Why don't you use |
I just want to see the skeleton path without the mesh, is there a way to do that? also, how to export this Path3D as |
|
I did what you said, it is still blank plot. I tried to zoom in and out or rotate. Nothing showed there. I added the mesh to the previous commits, I am not sure if you can have a try on it to see if you also get the same results |
And it doesn't work if you do |
When I tried to re-install the
Do you have any idea about this error? |
Try pip3 install git+https://github.com/navis-org/skeletor@master |
I installed successfully, but it still did not show only the branches on plot. By the way, I used the Jupyter Notebook to plot the path. |
What version of trimesh and pyglet do you have? |
|
Same for me. Try running this please: import trimesh as tm
import numpy as np
sc = tm.Scene(skel.skeleton.copy())
fac = 5 / np.fabs(skel.skeleton.bounds).max()
sc.apply_transform(np.diag([fac, fac, fac, 1]))
sc.show() If that doesn't work either, I am fresh out of ideas. |
@schlegelp |
At the end of the day this is trimesh issue. I would suggest you open an issue in their repo. You could share this minimal example of plotting a single line: import trimesh as tm
import numpy as np
vertices = np.array([[0, 0, 0], [1,1,1]])
lines = [tm.path.entities.Line([0, 1])]
p = tm.path.Path3D(entities=lines, vertices=vertices, process=False)
sc = tm.Scene(p)
sc.show() |
Thanks for your help! I will create an issue later today. |
Hi, I am working on the skeleton of 3D mesh. It is good to plot the skeleton path along with 3D mesh. However, if I want to only show the skeleton path, it displays nothing. Here is the screenshot of code and results. Hope someone can help me solve this issue. Also, I attached the mesh
vtk
file for you to reproduce.pred_ETV2_178.vtk.zip
The text was updated successfully, but these errors were encountered: