powered by
Transforms XYZ coordinates relative to a chosen origin
Transforms coordinates so that the origin lies at the reference vertex (defaults to the minimum of x, y, and z coordinates).
set_origin(mesh, reference = NULL)
mesh3d object
A triangular mesh of class mesh3d.
Vector containing coordinates of the reference vertex. If left empty, this will default to the minimum of x, y, and z.
mesh <- set_origin(mcap)
Run the code above in your browser using DataLab