Meshes

Functions to generate meshes to add to scenes

sphere_mesh()

Sphere 3D Model

cube_mesh()

Cube 3D Model

segment_mesh()

Segment 3D Model

cylinder_mesh()

Cylinder 3D Model

obj_mesh()

OBJ Mesh 3D Model

mesh3d_mesh()

Mesh3d 3D Model

cone_mesh()

Cone 3D Model

arrow_mesh()

Arrow 3D Model

torus_mesh()

Torus 3D Model

xy_rect_mesh()

XY Rectangle 3D Model

xz_rect_mesh()

XZ Rectangle 3D Model

yz_rect_mesh()

YZ Rectangle 3D Model

construct_mesh()

Manually construct a mesh

generate_cornell_mesh()

Cornell Box 3D Model

text3d_mesh()

Text Object

ply_mesh()

PLY Mesh 3D Model

Materials

Functions to specify the visual properties of objects

material_list()

Material List Generate a material properties list.

change_material()

Change Material Change individual material properties, leaving others alone.

set_material()

Set Material Add shape to a mesh

Transformations

Functions to manipulate meshes and lines in the scene

scale_lines()

Scale Lines

scale_mesh()

Scale Mesh

rotate_lines()

Rotate Lines

rotate_mesh()

Rotate Mesh

translate_lines()

Translate Lines

translate_mesh()

Translate Mesh

center_mesh()

Center Mesh Centers the mesh at the origin.

Lines

Functions to generate lines for the scene

generate_line()

Generate Lines

add_lines()

Add Line

color_lines()

Color Lines

rasterize_lines()

Rasterize Lines

rotate_lines()

Rotate Lines

scale_lines()

Scale Lines

translate_lines()

Translate Lines

Light

Functions to generate lights for the scene

add_light()

Add light

directional_light()

Generate Directional Lights

point_light()

Point light

Composing Scenes

Function for adding meshes, lines, and lights together to form a scene.

add_light()

Add light

add_lines()

Add Line

add_shape()

Add Shape Add shape to the scene

Render Rasterized Scene

Functions to render the current scene.

rasterize_lines()

Rasterize Lines

rasterize_scene()

Rasterize Scene