Detects and fills holes in a triangulated surface mesh using CGAL's hole
filling algorithm. When point_ids is supplied, only the hole whose boundary
passes through those points is filled; otherwise all detected holes are
filled.
Usage
patch_filling(
mesh,
point_ids = integer(0),
fairing_continuity = 1L,
update_attributes = TRUE
)Arguments
- mesh
A
mesh3dobject.- point_ids
Integer vector of 1-based vertex indices on the hole boundary to fill. Use
integer(0)(the default) to fill all holes.- fairing_continuity
Integer controlling the continuity order of the filled patch:
0(C0),1(C1, default), or2(C2).- update_attributes
Whether to interpolate point and cell data from the input. Default
TRUE.
Examples
f <- system.file("extdata", "torus.stl", package = "vespa")
mesh <- read_stl(f)
result <- patch_filling(mesh) # no-op: torus has no holes