rmInternals: remove vertices within a convex surface mesh

View source: R/rmInternals.r

rmInternalsR Documentation

remove vertices within a convex surface mesh

Description

remove vertices within a convex surface mesh by checking if they intersect the mesh along their normals.

Usage

rmInternals(mesh, mindist = 0, maxdist = 1e+12, explode = FALSE, center = NULL)

Arguments

mesh

triangular mesh of class "mesh3d"

mindist

numeric: restrict to those vertices whose intersection point is further away as mindist.

maxdist

nummeric: restrict to those vertices whose intersection point is closer away as maxdist.

explode

logical: instead of surface normals use the direction outward from a center of the mesh. Per default, the center of the meshes bounding box is used.

center

numeric vector of length 3, used in the case "explode=TRUE", if another center is required.

Details

This only works for convex meshes, for concave substructures this might result in unwanted removals.

Value

returns a cleaned mesh

Author(s)

Stefan Schlager

See Also

rmVertex


zarquon42b/mesheR documentation built on Jan. 28, 2024, 2:17 p.m.