Learn R Programming

habtools (version 1.1.1)

set_origin: Set the origin of a mesh

Description

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).

Usage

set_origin(mesh, reference = NULL)

Value

mesh3d object

Arguments

mesh

A triangular mesh of class mesh3d.

reference

Vector containing coordinates of the reference vertex. If left empty, this will default to the minimum of x, y, and z.

Examples

Run this code
mesh <- set_origin(mcap)

Run the code above in your browser using DataLab