Uses of Class
toxi.geom.mesh.TriangleMesh
-
Uses of TriangleMesh in toxi.geom.mesh
Modifier and TypeClassDescriptionclass
A class to dynamically build, manipulate & export triangle meshes.Modifier and TypeMethodDescriptionAdds all faces from the given mesh to this one.TriangleMesh.clear()
Clears all counters, and vertex & face buffers.TriangleMesh.computeFaceNormals()
Re-calculates all face normals.TriangleMesh.computeVertexNormals()
Computes the smooth vertex normals for the entire mesh.TriangleMesh.copy()
Creates a deep clone of the mesh.TriangleMesh.faceOutwards()
TriangleMesh.flipVertexOrder()
TriangleMesh.flipYAxis()
TriangleMesh.getRotatedAroundAxis
(Vec3D axis, float theta) TriangleMesh.getRotatedX
(float theta) TriangleMesh.getRotatedY
(float theta) TriangleMesh.getRotatedZ
(float theta) TriangleMesh.getScaled
(float scale) TriangleMesh.getTranslated
(Vec3D trans) TriangleMesh.pointTowards
(ReadonlyVec3D dir) Rotates the mesh in such a way so that its "forward" axis is aligned with the given direction.TriangleMesh.pointTowards
(ReadonlyVec3D dir, ReadonlyVec3D forward) Rotates the mesh in such a way so that its "forward" axis is aligned with the given direction.TriangleMesh.rotateAroundAxis
(Vec3D axis, float theta) TriangleMesh.rotateX
(float theta) TriangleMesh.rotateY
(float theta) TriangleMesh.rotateZ
(float theta) TriangleMesh.scale
(float scale) TriangleMesh.scale
(float x, float y, float z) Applies the given matrix transform to all mesh vertices and updates all face normals.Applies the given matrix transform to all mesh vertices.TriangleMesh.translate
(float x, float y, float z) TriangleMesh.updateVertex
(Vec3D orig, Vec3D newPos) Modifier and TypeMethodDescriptionvoid
PLYWriter.saveMesh
(TriangleMesh mesh, OutputStream stream) Exports the given mesh to the specifiedOutputStream
, including required header information.void
PLYWriter.saveMesh
(TriangleMesh mesh, String path) Exports the given mesh to the specified file path, including required header information.void
MeshIntersector.setMesh
(TriangleMesh mesh)