Skip to content

Commit

Permalink
Deploying to gh-pages from @ fury-gl/fury@a09d2ce 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Oct 12, 2024
1 parent a457178 commit f252284
Show file tree
Hide file tree
Showing 788 changed files with 2,076 additions and 1,857 deletions.
2 changes: 1 addition & 1 deletion dev/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: b9fdedbd5269b1241e0bf9aac624dcde
config: ae2825476cdba73a2a1959ef52fd4c56
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_arrow.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_cone.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_gltf.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_morphing.doctree
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_picking.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_selection.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_skinning.doctree
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_sphere.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_spiky.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_surfaces.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_texture.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/01_introductory/viz_timers.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/collision-particles.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/viz_animated_surfaces.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/viz_brownian_motion.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/viz_dt_ellipsoids.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/viz_emwave_animation.doctree
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/viz_fractals.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/viz_markers.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/viz_network.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/viz_network_animated.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/viz_pbr_interactive.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/viz_play_video.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/04_demos/viz_tesseract.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/index.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_buttons.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_card.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_card_sprite_sheet.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_check_boxes.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_combobox.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_drawpanel.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_layout.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_radio_buttons.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_shapes.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_spinbox.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_tab.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_ui.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_ui_listbox.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/07_ui/viz_ui_slider.doctree
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/10_animation/viz_camera.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/10_animation/viz_introduction.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/10_animation/viz_timeline.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/13_shaders/viz_pbr_spheres.doctree
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/13_shaders/viz_sdf_cylinder.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/13_shaders/viz_sdfactor.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/13_shaders/viz_shader.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/20_stream/viz_interaction.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/20_stream/viz_no_interaction.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/20_stream/viz_widget.doctree
Binary file not shown.
Binary file modified dev/.doctrees/auto_examples/index.doctree
Binary file not shown.
Binary file modified dev/.doctrees/community.doctree
Binary file not shown.
Binary file modified dev/.doctrees/environment.pickle
Binary file not shown.
Binary file modified dev/.doctrees/reference/fury.deprecator.doctree
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"outputs": [],
"source": [
"import numpy as np\n\nimport fury\n\nscene = fury.window.Scene()\n\nshowm = fury.window.ShowManager(\n scene, size=(900, 768), reset_camera=False, order_transparent=True\n)"
"import numpy as np\n\nimport fury\n\nscene = fury.window.Scene()\n\nshowm = fury.window.ShowManager(\n scene=scene, size=(900, 768), reset_camera=False, order_transparent=True\n)"
]
},
{
Expand Down Expand Up @@ -69,7 +69,7 @@
},
"outputs": [],
"source": [
"sphere_linear = fury.actor.sphere(np.array([[0, 0, 0]]), (1, 0.5, 0.2), 0.5)\n\nlinear_anim = fury.animation.Animation()\nlinear_anim.add_actor(sphere_linear)\n\nlinear_anim.set_position_keyframes(position_keyframes)"
"sphere_linear = fury.actor.sphere(np.array([[0, 0, 0]]), (1, 0.5, 0.2), radii=0.5)\n\nlinear_anim = fury.animation.Animation()\nlinear_anim.add_actor(sphere_linear)\n\nlinear_anim.set_position_keyframes(position_keyframes)"
]
},
{
Expand All @@ -94,7 +94,7 @@
},
"outputs": [],
"source": [
"sphere_spline = fury.actor.sphere(np.array([[0, 0, 0]]), (0.3, 0.9, 0.6), 1)\nspline_anim = fury.animation.Animation(sphere_spline)\nspline_anim.set_position_keyframes(position_keyframes)"
"sphere_spline = fury.actor.sphere(np.array([[0, 0, 0]]), (0.3, 0.9, 0.6), radii=1)\nspline_anim = fury.animation.Animation(actors=sphere_spline)\nspline_anim.set_position_keyframes(position_keyframes)"
]
},
{
Expand Down Expand Up @@ -209,7 +209,7 @@
},
"outputs": [],
"source": [
"interactive = False\n\nif interactive:\n showm.start()\n\nfury.window.record(scene, out_path=\"viz_keyframe_animation_spline.png\", size=(900, 768))"
"interactive = False\n\nif interactive:\n showm.start()\n\nfury.window.record(\n scene=scene, out_path=\"viz_keyframe_animation_spline.png\", size=(900, 768)\n)"
]
}
],
Expand Down
4 changes: 2 additions & 2 deletions dev/_downloads/047960bb41f51d256e795f60be8e1969/viz_timers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
scene.add(sphere_actor)

showm = fury.window.ShowManager(
scene, size=(900, 768), reset_camera=False, order_transparent=True
scene=scene, size=(900, 768), reset_camera=False, order_transparent=True
)


Expand Down Expand Up @@ -66,4 +66,4 @@ def timer_callback(_obj, _event):

showm.start()

fury.window.record(showm.scene, size=(900, 768), out_path="viz_timer.png")
fury.window.record(scene=showm.scene, size=(900, 768), out_path="viz_timer.png")
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
},
"outputs": [],
"source": [
"directions = np.array(\n [\n [np.sqrt(2) / 2, 0, np.sqrt(2) / 2],\n [np.sqrt(2) / 2, np.sqrt(2) / 2, 0],\n [0, np.sqrt(2) / 2, np.sqrt(2) / 2],\n ]\n)\nfury_actor = fury.actor.cube(centers, directions, colors, scales=radii)"
"directions = np.array(\n [\n [np.sqrt(2) / 2, 0, np.sqrt(2) / 2],\n [np.sqrt(2) / 2, np.sqrt(2) / 2, 0],\n [0, np.sqrt(2) / 2, np.sqrt(2) / 2],\n ]\n)\nfury_actor = fury.actor.cube(\n centers, directions=directions, colors=colors, scales=radii\n)"
]
},
{
Expand Down Expand Up @@ -105,7 +105,7 @@
},
"outputs": [],
"source": [
"vcolors = fury.utils.colors_from_actor(fury_actor, \"colors\")"
"vcolors = fury.utils.colors_from_actor(fury_actor, array_name=\"colors\")"
]
},
{
Expand Down Expand Up @@ -195,7 +195,7 @@
},
"outputs": [],
"source": [
"showm = fury.window.ShowManager(scene, size=(1024, 768), order_transparent=True)\n\nscene.add(panel)"
"showm = fury.window.ShowManager(scene=scene, size=(1024, 768), order_transparent=True)\n\nscene.add(panel)"
]
},
{
Expand Down Expand Up @@ -231,7 +231,7 @@
},
"outputs": [],
"source": [
"fury.window.record(showm.scene, size=(1024, 768), out_path=\"viz_picking.png\")"
"fury.window.record(scene=showm.scene, size=(1024, 768), out_path=\"viz_picking.png\")"
]
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
if interactive:
show_manager.start()

fury.window.record(show_manager.scene, out_path="ui_layout.png", size=(400, 400))
fury.window.record(scene=show_manager.scene, out_path="ui_layout.png", size=(400, 400))
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# We create our ``Scene`` and ``ShowManager`` as usual.
scene = fury.window.Scene()

showm = fury.window.ShowManager(scene, size=(900, 768))
showm = fury.window.ShowManager(scene=scene, size=(900, 768))
showm.initialize()

###############################################################################
Expand Down Expand Up @@ -88,5 +88,5 @@
showm.start()

fury.window.record(
scene, out_path="viz_keyframe_animation_timeline.png", size=(900, 768)
scene=scene, out_path="viz_keyframe_animation_timeline.png", size=(900, 768)
)
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
if interactive:
window.show(scene, size=(600, 600))

window.record(scene, out_path="viz_cone.png", size=(600, 600))
window.record(scene=scene, out_path="viz_cone.png", size=(600, 600))
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@
for i in range(10):
pos = [-40, -5 * i, 0]
label = fury.actor.vector_text(
labels[i], pos=pos, scale=(0.8, 0.8, 0.8), color=(0, 0, 0)
text=labels[i], pos=pos, scale=(0.8, 0.8, 0.8), color=(0, 0, 0)
)
scene.add(label)

for j in range(11):
pos = [-26 + 5 * j, 5, 0]
label = fury.actor.vector_text(
str(np.round(j * 0.1, decimals=1)),
text=str(np.round(j * 0.1, decimals=1)),
pos=pos,
scale=(0.8, 0.8, 0.8),
color=(0, 0, 0),
Expand All @@ -104,4 +104,4 @@
if interactive:
fury.window.show(scene)

fury.window.record(scene, size=(600, 600), out_path="viz_principled_spheres.png")
fury.window.record(scene=scene, size=(600, 600), out_path="viz_principled_spheres.png")
Binary file not shown.
Binary file not shown.
12 changes: 7 additions & 5 deletions dev/_downloads/0815a10a49849e7a50936c253c3ffffc/viz_fractals.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def gen_centers(depth, pos, center, dist):
vertices, triangles, colors, _ = fury.primitive.repeat_primitive(
centers=centers, colors=colors, vertices=vertices, faces=faces
)
return fury.utils.get_actor_from_primitive(vertices, triangles, colors)
return fury.utils.get_actor_from_primitive(vertices, triangles, colors=colors)


###############################################################################
Expand Down Expand Up @@ -158,7 +158,7 @@ def gen_centers(depth, pos, center, dist):
vertices, triangles, colors, _ = fury.primitive.repeat_primitive(
centers=centers, colors=colors, vertices=vertices, faces=faces
)
return fury.utils.get_actor_from_primitive(vertices, triangles, colors)
return fury.utils.get_actor_from_primitive(vertices, triangles, colors=colors)


###############################################################################
Expand Down Expand Up @@ -213,15 +213,17 @@ def gen_centers(depth, pos, center, side):
vertices, triangles, colors, _ = fury.primitive.repeat_primitive(
centers=centers, colors=colors, vertices=vertices, faces=faces
)
return fury.utils.get_actor_from_primitive(vertices, triangles, colors)
return fury.utils.get_actor_from_primitive(vertices, triangles, colors=colors)


###############################################################################
# Now that we have the functions to generate fractals, we can start setting up
# the Scene and ShowManager.

scene = fury.window.Scene()
showmgr = fury.window.ShowManager(scene, "Fractals", (800, 800), reset_camera=True)
showmgr = fury.window.ShowManager(
scene=scene, title="Fractals", size=(800, 800), reset_camera=True
)

###############################################################################
# These values are what work nicely on my machine without lagging. If you have
Expand Down Expand Up @@ -289,4 +291,4 @@ def timer_callback(_obj, _event):
if interactive:
showmgr.start()
else:
fury.window.record(showmgr.scene, out_path="fractals.png", size=(800, 800))
fury.window.record(scene=showmgr.scene, out_path="fractals.png", size=(800, 800))
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@
if interactive:
fury.window.show(scene, size=(1280, 720))

fury.window.record(scene, out_path="viz_gltf_export.png", size=(1280, 720))
fury.window.record(scene=scene, out_path="viz_gltf_export.png", size=(1280, 720))
Binary file modified dev/_downloads/0ca34b75f2c64753ef693f93bf31e662/viz_spiky.zip
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"outputs": [],
"source": [
"scene = fury.window.Scene()\n\nshowm = fury.window.ShowManager(scene, size=(900, 768))\nshowm.initialize()"
"scene = fury.window.Scene()\n\nshowm = fury.window.ShowManager(scene=scene, size=(900, 768))\nshowm.initialize()"
]
},
{
Expand Down Expand Up @@ -162,7 +162,7 @@
},
"outputs": [],
"source": [
"showm.add_animation(timeline)\n\nscene.set_camera(position=(0, 0, -10))\n\ninteractive = False\n\nif interactive:\n showm.start()\n\nfury.window.record(\n scene, out_path=\"viz_keyframe_animation_timeline.png\", size=(900, 768)\n)"
"showm.add_animation(timeline)\n\nscene.set_camera(position=(0, 0, -10))\n\ninteractive = False\n\nif interactive:\n showm.start()\n\nfury.window.record(\n scene=scene, out_path=\"viz_keyframe_animation_timeline.png\", size=(900, 768)\n)"
]
}
],
Expand Down
Binary file modified dev/_downloads/0eebaf3c387fd05da33d70f6977ed2cd/viz_slice.zip
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

# Preparing the show manager as usual
showm = fury.window.ShowManager(
scene, size=(900, 768), reset_camera=False, order_transparent=True
scene=scene, size=(900, 768), reset_camera=False, order_transparent=True
)

# showm.initialize()
Expand Down
Binary file modified dev/_downloads/119ebd974546c339566e74a84baba9b3/viz_timeline.zip
Binary file not shown.
Binary file modified dev/_downloads/148b936e54c9b9ef503924842fc5f2ae/viz_layout.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def toggle_color(checkboxes):
figure_dict = {"cube": cube, "sphere": sphere, "cone": cone, "arrow": arrow}
check_box = ui.Checkbox(
list(figure_dict),
list(figure_dict),
checked_labels=list(figure_dict),
padding=1,
font_size=18,
font_family="Arial",
Expand Down Expand Up @@ -161,4 +161,4 @@ def toggle_color(checkboxes):
if interactive:
show_manager.start()

window.record(show_manager.scene, size=current_size, out_path="viz_checkbox.png")
window.record(scene=show_manager.scene, size=current_size, out_path="viz_checkbox.png")
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
},
"outputs": [],
"source": [
"interactive = False\nif interactive:\n fury.window.show(scene, size=(600, 600), reset_camera=False)\nfury.window.record(scene, size=(900, 768), out_path=\"viz_texture.png\")"
"interactive = False\nif interactive:\n fury.window.show(scene, size=(600, 600), reset_camera=False)\nfury.window.record(scene=scene, size=(900, 768), out_path=\"viz_texture.png\")"
]
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"outputs": [],
"source": [
"fury.utils.rotate(earth_actor, (-90, 1, 0, 0))\nfury.utils.rotate(earth_actor, (180, 0, 1, 0))\nearth_actor.SetScale(2, 2, 2)"
"fury.utils.rotate(earth_actor, rotation=(-90, 1, 0, 0))\nfury.utils.rotate(earth_actor, rotation=(180, 0, 1, 0))\nearth_actor.SetScale(2, 2, 2)"
]
},
{
Expand Down Expand Up @@ -105,7 +105,7 @@
},
"outputs": [],
"source": [
"centers = np.array([[*locationone], [*locationtwo], [*locationthree]])\ncolors = np.random.rand(3, 3)\nradii = np.array([0.005, 0.005, 0.005])\nsphere_actor = fury.actor.sphere(centers, colors, radii)\nscene.add(sphere_actor)"
"centers = np.array([[*locationone], [*locationtwo], [*locationthree]])\ncolors = np.random.rand(3, 3)\nradii = np.array([0.005, 0.005, 0.005])\nsphere_actor = fury.actor.sphere(centers, colors, radii=radii)\nscene.add(sphere_actor)"
]
},
{
Expand All @@ -123,7 +123,7 @@
},
"outputs": [],
"source": [
"nyc_actor = fury.actor.text_3d(\n \"New York City, New York\\n40.7128\u00b0 N, 74.0060\u00b0 W\",\n (locationone[0] - 0.04, locationone[1], locationone[2] + 0.07),\n fury.window.colors.white,\n 0.01,\n)\nparis_actor = fury.actor.text_3d(\n \"Paris, France\\n48.8566\u00b0 N, 2.3522\u00b0 E\",\n (locationthree[0] - 0.04, locationthree[1], locationthree[2] - 0.07),\n fury.window.colors.white,\n 0.01,\n)\nbeijing_actor = fury.actor.text_3d(\n \"Beijing, China\\n39.9042\u00b0 N, 116.4074\u00b0 E\",\n (locationtwo[0] - 0.06, locationtwo[1], locationtwo[2] - 0.07),\n fury.window.colors.white,\n 0.01,\n)\nfury.utils.rotate(paris_actor, (85, 0, 1, 0))\nfury.utils.rotate(beijing_actor, (180, 0, 1, 0))\nfury.utils.rotate(nyc_actor, (5, 1, 0, 0))"
"nyc_actor = fury.actor.text_3d(\n \"New York City, New York\\n40.7128\u00b0 N, 74.0060\u00b0 W\",\n position=(locationone[0] - 0.04, locationone[1], locationone[2] + 0.07),\n color=fury.window.colors.white,\n font_size=0.01,\n)\nparis_actor = fury.actor.text_3d(\n \"Paris, France\\n48.8566\u00b0 N, 2.3522\u00b0 E\",\n position=(locationthree[0] - 0.04, locationthree[1], locationthree[2] - 0.07),\n color=fury.window.colors.white,\n font_size=0.01,\n)\nbeijing_actor = fury.actor.text_3d(\n \"Beijing, China\\n39.9042\u00b0 N, 116.4074\u00b0 E\",\n position=(locationtwo[0] - 0.06, locationtwo[1], locationtwo[2] - 0.07),\n color=fury.window.colors.white,\n font_size=0.01,\n)\nfury.utils.rotate(paris_actor, rotation=(85, 0, 1, 0))\nfury.utils.rotate(beijing_actor, rotation=(180, 0, 1, 0))\nfury.utils.rotate(nyc_actor, rotation=(5, 1, 0, 0))"
]
},
{
Expand All @@ -141,7 +141,7 @@
},
"outputs": [],
"source": [
"showm = fury.window.ShowManager(\n scene, size=(900, 768), reset_camera=False, order_transparent=True\n)"
"showm = fury.window.ShowManager(\n scene=scene, size=(900, 768), reset_camera=False, order_transparent=True\n)"
]
},
{
Expand Down Expand Up @@ -177,7 +177,7 @@
},
"outputs": [],
"source": [
"showm.add_timer_callback(True, 25, timer_callback)\nshowm.start()\n\nfury.window.record(showm.scene, size=(900, 768), out_path=\"viz_earth_coordinates.png\")"
"showm.add_timer_callback(True, 25, timer_callback)\nshowm.start()\n\nfury.window.record(\n scene=showm.scene, size=(900, 768), out_path=\"viz_earth_coordinates.png\"\n)"
]
}
],
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
},
"outputs": [],
"source": [
"show_manager.scene.reset_camera()\nshow_manager.scene.set_camera(position=(0, 0, 150))\nshow_manager.scene.reset_clipping_range()\nshow_manager.scene.azimuth(30)\ninteractive = False\n\nif interactive:\n show_manager.start()\n\nfury.window.record(show_manager.scene, size=current_size, out_path=\"viz_slider.png\")"
"show_manager.scene.reset_camera()\nshow_manager.scene.set_camera(position=(0, 0, 150))\nshow_manager.scene.reset_clipping_range()\nshow_manager.scene.azimuth(30)\ninteractive = False\n\nif interactive:\n show_manager.start()\n\nfury.window.record(\n scene=show_manager.scene, size=current_size, out_path=\"viz_slider.png\"\n)"
]
}
],
Expand Down
Binary file modified dev/_downloads/199a7841405237aa8309ad1740e8f753/viz_picking.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"outputs": [],
"source": [
"scene = fury.window.Scene()\n\nshowm = fury.window.ShowManager(\n scene, size=(900, 768), reset_camera=False, order_transparent=True\n)\nshowm.initialize()"
"scene = fury.window.Scene()\n\nshowm = fury.window.ShowManager(\n scene=scene, size=(900, 768), reset_camera=False, order_transparent=True\n)\nshowm.initialize()"
]
},
{
Expand Down Expand Up @@ -105,7 +105,7 @@
},
"outputs": [],
"source": [
"interactive = False\n\n\ndef timer_callback(_obj, _event):\n timeline.update_animation()\n showm.render()\n\n\nshowm.add_timer_callback(True, 10, timer_callback)\n\nif interactive:\n showm.start()\n\nfury.window.record(scene, out_path=\"viz_gltf_animated.png\", size=(900, 768))"
"interactive = False\n\n\ndef timer_callback(_obj, _event):\n timeline.update_animation()\n showm.render()\n\n\nshowm.add_timer_callback(True, 10, timer_callback)\n\nif interactive:\n showm.start()\n\nfury.window.record(scene=scene, out_path=\"viz_gltf_animated.png\", size=(900, 768))"
]
}
],
Expand Down
Binary file modified dev/_downloads/1cfb31ae484ad326090029fa173b7e6d/viz_gltf.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def update_coordinates(wavenumber, ang_frq, time, phase_angle):
position=(-6, 5, -10), focal_point=(0.0, 0.0, 0.0), view_up=(0.0, 0.0, 0.0)
)
showm = fury.window.ShowManager(
scene, size=(800, 600), reset_camera=True, order_transparent=True
scene=scene, size=(800, 600), reset_camera=True, order_transparent=True
)


Expand All @@ -86,7 +86,7 @@ def update_coordinates(wavenumber, ang_frq, time, phase_angle):
centers,
directions,
fury.window.colors.yellow,
heights,
heights=heights,
resolution=20,
tip_length=0.06,
tip_radius=0.012,
Expand All @@ -105,11 +105,11 @@ def update_coordinates(wavenumber, ang_frq, time, phase_angle):
pts = np.array(list(zip(x, y, z)))
pts = [pts]
colors = fury.window.colors.red
wave_actor1 = fury.actor.line(pts, colors, linewidth=3)
wave_actor1 = fury.actor.line(pts, colors=colors, linewidth=3)
scene.add(wave_actor1)

vertices = fury.utils.vertices_from_actor(wave_actor1)
vcolors = fury.utils.colors_from_actor(wave_actor1, "colors")
vcolors = fury.utils.colors_from_actor(wave_actor1, array_name="colors")
no_vertices_per_point = len(vertices) / npoints
initial_vertices = vertices.copy() - np.repeat(pts, no_vertices_per_point, axis=0)

Expand All @@ -124,11 +124,11 @@ def update_coordinates(wavenumber, ang_frq, time, phase_angle):
pts2 = np.array(list(zip(xx, yy, zz)))
pts2 = [pts2]
colors2 = fury.window.colors.blue
wave_actor2 = fury.actor.line(pts2, colors2, linewidth=3)
wave_actor2 = fury.actor.line(pts2, colors=colors2, linewidth=3)
scene.add(wave_actor2)

vertices2 = fury.utils.vertices_from_actor(wave_actor2)
vcolors2 = fury.utils.colors_from_actor(wave_actor2, "colors")
vcolors2 = fury.utils.colors_from_actor(wave_actor2, array_name="colors")
no_vertices_per_point2 = len(vertices2) / npoints
initial_vertices2 = vertices2.copy() - np.repeat(pts2, no_vertices_per_point2, axis=0)

Expand Down Expand Up @@ -186,4 +186,4 @@ def timer_callback(_obj, _event):
interactive = False
if interactive:
showm.start()
fury.window.record(showm.scene, size=(800, 600), out_path="viz_emwave.png")
fury.window.record(scene=showm.scene, size=(800, 600), out_path="viz_emwave.png")
Loading

0 comments on commit f252284

Please sign in to comment.