Learn R Programming

habtools (version 1.1.1)

scale_area: Re-scale mesh based on a fixed area

Description

Re-scale mesh based on a fixed area

Usage

scale_area(mesh, target_area = 1)

Value

A mesh with area = target_area (1 as default).

Arguments

mesh

A triangular mesh of class mesh3d.

target_area

The target area of the scaled 3D mesh. Defaults to 1.

Examples

Run this code
Rvcg::vcgArea(mcap)
mcap_scaled <- scale_area(mcap)
Rvcg::vcgArea(mcap_scaled)

Run the code above in your browser using DataLab