as.tmesh3d: Convert object to a triangular mesh
Description
Converts the quads in a mesh version of an object to
triangles by splitting them up. Optionally drops any
point or segment components.
Usage
as.tmesh3d(x, ...)
# S3 method for default
as.tmesh3d(x, drop = FALSE, ...)
# S3 method for mesh3d
as.tmesh3d(x, drop = FALSE, ...)
Value
A "mesh3d"
object containing no quads. If drop = TRUE
, it will only contain triangles.
Arguments
- x
An object from which to create a triangular mesh object.
- drop
If TRUE
, drop any point or segment components.
- ...
Ignored in the mesh3d
method, passed to
as.mesh3d
in the default method.
Details
The default method simply calls as.mesh3d(x, ...)
and passes the result to the "mesh3d"
method.
See Also
as.triangles3d
to get just the coordinates.
Examples
Run this codex <- cuboctahedron3d()
x # has quads and triangles
as.tmesh3d(x) # has only triangles
Run the code above in your browser using DataLab