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

r_obj()

R 3D Model

read_obj()

Load an OBJ file

Materials

Functions to specify the visual properties of objects

material_list()

Material List

change_material()

Change Material

set_material()

Set Material

Transformations

Functions to manipulate meshes and lines in the scene

scale_lines()

Scale Lines

scale_mesh()

Scale Mesh

scale_unit_mesh()

Scale Mesh to Unit Bounding Box

rotate_lines()

Rotate Lines

rotate_mesh()

Rotate Mesh

translate_lines()

Translate Lines

translate_mesh()

Translate Mesh

center_mesh()

Center Mesh

flip_orientation_mesh()

Flip Orientation

swap_yz()

Swap Y/Z Axis

smooth_normals_mesh()

Calculate Smooth Mesh Normals

add_plane_uv_mesh()

Add Plane UV Mapping to Mesh

subdivide_mesh()

Subdivide Mesh

displace_mesh()

Displace a Mesh

displacement_sphere()

Construct Displacement Sphere

Get Mesh Info

Functions to get information about meshes

get_mesh_bbox()

Get Mesh Bounding Box

get_mesh_center()

Get Mesh Center

validate_mesh()

Validate Mesh Data

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_plane_uv_mesh()

Add Plane UV Mapping to Mesh

add_shape()

Add Shape

add_sphere_uv_mesh()

Add Sphere UV Mapping to Mesh

scene_from_list()

Scene From List

Render Rasterized Scene

Functions to render and write the current scene.

rasterize_lines()

Rasterize Lines

rasterize_scene()

Rasterize Scene

write_scene_to_obj()

Write the scene to an OBJ file

pkgdown utils

Internal but must be exported to meet CRAN guidelines

run_documentation()

Run Documentation