remove_cyl: \lifecycleexperimental

Description Usage Arguments Details Value Examples

View source: R/remove_cyl.R

Description

Remove the specimen container from an oriented 3D mesh

Usage

1
remove_cyl(mesh, radius = 70, clip_fun = "default", keep = "inside", ...)

Arguments

mesh

The "mesh3d" object to trim

radius

Radius of clipping surface in mm

clip_fun

A function corresponding to the bounding surface, defaults to an open cylinder

keep

"inside" for vertices contained by the surface; "outside" for those falling beyond it

...

allows user to set the attribute argument if needed (see clipMesh3d)

Details

Boolean mesh operation to keep all points inside or outside the clipping surface

Value

A "mesh3d" object with undesired vertices removed

Examples

1
2
3
4
untrimmed <- rgl::translate3d(untrimmed_mesh1, x=-160, y=0, z=0)
trimmed <- remove_cyl(untrimmed_mesh1)
rgl::shade3d(untrimmed)
rgl::shade3d(trimmed)

evanmascitti/soilmesh documentation built on Sept. 30, 2021, 7:57 a.m.