Smooths a user-defined region of a triangulated surface mesh using CGAL's
region fairing algorithm. The region vertices are moved to minimise a
local fairing energy while the boundary of the region is kept fixed.
Usage
region_fairing(mesh, point_ids, update_attributes = TRUE)
Arguments
- mesh
A mesh3d object.
- point_ids
Integer vector of 1-based vertex indices defining the region
to be faired.
- update_attributes
Whether to interpolate point and cell data from the
input. Default TRUE.
Value
A mesh3d object with the selected region faired.
See also
Other mesh_transforms:
alpha_wrapping(),
boolean_operation(),
isotropic_remeshing(),
mesh_check(),
mesh_deformation(),
mesh_smoothing(),
mesh_subdivision(),
patch_filling(),
pca_estimate_normals(),
poisson_reconstruction(),
shape_smoothing()
Examples
f <- system.file("extdata", "torus.stl", package = "vespa")
mesh <- read_stl(f)
result <- region_fairing(mesh, point_ids = 1:5)