Skip to contents

All functions

apply_colormap()
Apply a colormap to numerical data
bezier_path()
Sample a Bezier curve from a control polygon
camera()
Create a camera specification
camera_auto()
Auto-frame a camera to fit a mesh or vertex set
camera_fit_scene()
Fit a camera to a whole scene
camera_orbit()
Orbit a camera around an axis
clip_plane()
Create a clip plane specification
colorbar_horizontal()
Generate a horizontal colorbar image
colorbar_vertical()
Generate a vertical colorbar image
compose_layout()
Compose multiple images into a single figure
compute_vertex_normals()
Compute per-vertex normals for a mesh
default_font()
Path of the font used for text labels
diverging_colormap()
Custom diverging colormap for neuroimaging
flip_uvs()
Flip the texture coordinates of a mesh vertically
font_info()
Information about the font used for text labels
generate_arrow()
Generate an arrow mesh
generate_axes()
Generate XYZ axis arrows as cylinder meshes
generate_bbox()
Generate a wireframe bounding box mesh
generate_cone()
Generate a cone mesh
generate_cuboid()
Generate a cuboid mesh
generate_cylinder()
Generate a cylinder mesh
generate_multi_cylinders()
Generate multiple cylinders as a single mesh
generate_multi_spheres()
Generate multiple spheres as a single mesh
generate_plane()
Generate a planar quad mesh
generate_pyramid()
Generate a square pyramid mesh
generate_sphere()
Generate a sphere mesh
generate_tetrahedron()
Generate a tetrahedron mesh
generate_torus()
Generate a torus mesh
generate_tube()
Generate a tube (generalized cylinder) along a path
generate_tubes()
Generate multiple tubes as a single mesh
image_apply_contrast()
Apply contrast adjustment to an image
image_crop()
Crop an image to a rectangular region
image_crop_to_content()
Crop an image to its content bounding box
image_grow()
Grow an image by adding padding
image_merge()
Merge two images side by side or stacked
image_rotate_90()
Rotate an image by 90 degrees
image_scale()
Scale an image (nearest-neighbour)
image_to_array()
Convert a rendered image to an RGBA array
line_layer()
Create a line layer (screen-space lines, no geometry)
mesh_bbox()
Compute the axis-aligned bounding box of a mesh
mesh_from_rgl()
Convert an rgl tmesh3d to scimesh mesh format
mesh_to_rgl()
Convert a scimesh mesh to rgl tmesh3d format
path_curvature()
Curvature along a path
path_length()
Length of a path
read_obj()
Read a Wavefront OBJ file
read_ply()
Read a Stanford PLY file
read_stl()
Read an STL file
render_lines()
Render line segments as thin cylinders
render_mesh()
Render a 3D mesh to an image
render_options()
Create render options
render_points()
Render screen-space point primitives
render_scene()
Render multiple meshes to an image
render_segments()
Render line segments directly to an image
render_spheres()
Render multiple spheres from point data
render_text()
Render text labels to an image
render_triangles()
Render raw triangles without index buffer
resample_path()
Resample a path at a fixed arc length step
rotate_mesh()
Rotate a mesh around an axis
scale_mesh()
Scale a mesh uniformly or per-axis
scene()
Create a scene descriptor
scene_set_line_affects_bounds()
Change whether line layers of a scene contribute to its bounds
set_mesh_alpha()
Set the transparency of a whole mesh
spline_path()
Smooth curve through ordered 3D points
stack_horizontal()
Stack images horizontally
stack_vertical()
Stack images vertically
text_extent()
Measure text
text_layer()
Create a text label layer (2D annotations for a scene)
transform_mesh()
Apply a 4x4 transformation matrix to a mesh
translate_mesh()
Translate a mesh
viridis_colormap()
Viridis colormap
world_to_screen()
Project world coordinates to image pixels
write_gltf()
Write a scene or mesh list to a glTF file
write_png()
Write a rendered image to a PNG file
write_stl()
Write a mesh to an STL file
write_tga()
Write a rendered image to a TGA file