Note
Go to the end to download the full example code
Fury Cone Actor#
This example shows how to use the cone actor.
import numpy as np
from fury import actor, window
First thing, you have to specify centers, directions, and colors of the cone
centers = np.zeros([3, 3])
dirs = np.identity(3)
colors = np.identity(3)
The below cone actor is generated by repeating the cone primitive.
repeating what we did but this time with random directions, and colors Here, we’re using vtkConeSource to generate the cone actor
Adding our cone actors to scene.
scene.add(cone_actor1)
scene.add(cone_actor2)
interactive = False
if interactive:
window.show(scene, size=(600, 600))
window.record(scene=scene, out_path="viz_cone.png", size=(600, 600))
Total running time of the script: (0 minutes 0.049 seconds)