| as.tmesh3d {rgl} | R Documentation |
Converts the quads in a mesh version of an object to triangles by splitting them up. Optionally drops any point or segment components.
as.tmesh3d(x, ...) ## Default S3 method: as.tmesh3d(x, drop = FALSE, ...) ## S3 method for class 'mesh3d' as.tmesh3d(x, drop = FALSE, ...)
x |
An object from which to create a triangular mesh object. |
drop |
If |
... |
Ignored in the |
The default method simply calls as.mesh3d(x, ...)
and passes the result to the "mesh3d" method.
A "mesh3d" object containing no quads. If drop = TRUE, it will only contain triangles.
Older versions of rgl had a "tmesh3d" class
for meshes of triangles. That class is no longer used:
as.tmesh3d and tmesh3d both produce
"mesh3d" objects.
Duncan Murdoch
as.triangles3d to get just the coordinates.
x <- cuboctahedron3d() x # has quads and triangles as.tmesh3d(x) # has only triangles