rmInternals | R Documentation |
remove vertices within a convex surface mesh by checking if they intersect the mesh along their normals.
rmInternals(mesh, mindist = 0, maxdist = 1e+12, explode = FALSE, center = NULL)
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. |
This only works for convex meshes, for concave substructures this might result in unwanted removals.
returns a cleaned mesh
Stefan Schlager
rmVertex
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.