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
Sphere actor does not appear when vertices and faces are used #400
Comments
Hi @nasimanousheh, Thank you for pointing that out. I see several potential mistakes:
I need to tests your example but it will be good if you could check these 2 points first. |
Thank you for the corrections.
|
ok, we will look into this issue. a temporary solution for you is: from fury import actor, primitive, window, utils
import fury
import numpy as np
scene = window.Scene()
vertices, faces = primitive.prim_sphere(name='symmetric362',
gen_faces=False)
pos = np.array([[0,0,0]])
res = primitive.repeat_primitive(vertices, faces, centers=pos)
big_verts, big_faces, big_colors, _ = res
sphere_actor = utils.get_actor_from_primitive(big_verts, big_faces, big_colors)
scene.add(sphere_actor)
window.show(scene) |
I tried debugging it, there are perhaps three functions that can contain clues -
|
Description
When I use 'theta' and 'phi' parameters in sphere actor, I can see the spheres in the window. But I don't see any spheres when I use 'vertices' and 'faces' parameters.
Here is the code sample to verify the issue:
Thank you all!
The text was updated successfully, but these errors were encountered: