Uses of Interface
toxi.geom.mesh.Mesh3D
Packages that use Mesh3D
-
Uses of Mesh3D in toxi.geom
Modifier and TypeMethodDescriptionAABB.toMesh()
AxisAlignedCylinder.toMesh()
Builds a TriangleMesh representation of the cylinder at a default resolution 30 degrees.AxisAlignedCylinder.toMesh
(int steps, float thetaOffset) Builds a TriangleMesh representation of the cylinder using the given number of steps and start angle offset.Cone.toMesh
(int steps) Cone.toMesh
(int steps, float thetaOffset) Plane.toMesh
(float size) Creates a TriangleMesh representation of the plane as a finite, squared quad of the requested size, centred around the current plane point.Sphere.toMesh
(int res) Modifier and TypeMethodDescription -
Uses of Mesh3D in toxi.geom.mesh
Classes in toxi.geom.mesh that implement Mesh3DModifier and TypeClassDescriptionclass
An extensible class to dynamically build, manipulate & export triangle meshes.class
A class to dynamically build, manipulate & export triangle meshes.Fields in toxi.geom.mesh with type parameters of type Mesh3DMethods in toxi.geom.mesh that return Mesh3DModifier and TypeMethodDescriptionAdds the given 3 points as triangle face to the mesh.Adds the given 3 points as triangle face to the mesh and assigns the given texture coordinates to each vertex.Mesh3D.clear()
Clears all counters, and vertex & face buffers.Mesh3D.computeFaceNormals()
Re-calculates all face normals.Mesh3D.computeVertexNormals()
Computes the smooth vertex normals for the entire mesh.SurfaceMeshBuilder.createMesh
(int res) SurfaceMeshBuilder.createMesh
(Mesh3D mesh, int res, float size) SurfaceMeshBuilder.createMesh
(Mesh3D mesh, int res, float size, boolean isClosed) Mesh3D.faceOutwards()
Changes the vertex order of faces such that their normal is facing away from the mesh centroid.Mesh3D.flipVertexOrder()
Flips the vertex ordering between clockwise and anti-clockwise.Mesh3D.flipYAxis()
Flips all vertices along the Y axis and reverses the vertex ordering of all faces to compensate and keep the direction of normals intact.VertexSelector.getMesh()
Returns the associated mesh for this selector.STLReader.loadBinary
(InputStream stream, String meshName, int bufSize, Class<? extends Mesh3D> meshClass) Attempts to load an STL model from the givenInputStream
.STLReader.loadBinary
(InputStream stream, String meshName, Class<? extends Mesh3D> meshClass) Attempts to load an STL model from the givenInputStream
.STLReader.loadBinary
(String fileName, int bufSize, Class<? extends Mesh3D> meshClass) Attempts to load an STL model from the given file path.STLReader.loadBinary
(String fileName, Class<? extends Mesh3D> meshClass) BezierPatch.toMesh
(int res) Terrain.toMesh()
Terrain.toMesh
(float groundLevel) Creates aTriangleMesh
instance of the terrain surface or adds its geometry to an existing mesh.Creates aTriangleMesh
instance of the terrain and constructs side panels and a bottom plane to form a fully enclosed mesh volume, e.g.Methods in toxi.geom.mesh with parameters of type Mesh3DModifier and TypeMethodDescriptionAdds all faces from the given mesh to this one.Adds all faces from the given mesh to this one.SurfaceMeshBuilder.createMesh
(Mesh3D mesh, int res, float size) SurfaceMeshBuilder.createMesh
(Mesh3D mesh, int res, float size, boolean isClosed) void
Assigns a new mesh instance to this selector and clears the current selection.Creates aTriangleMesh
instance of the terrain surface or adds its geometry to an existing mesh.Creates aTriangleMesh
instance of the terrain and constructs side panels and a bottom plane to form a fully enclosed mesh volume, e.g.Method parameters in toxi.geom.mesh with type arguments of type Mesh3DModifier and TypeMethodDescriptionSTLReader.loadBinary
(InputStream stream, String meshName, int bufSize, Class<? extends Mesh3D> meshClass) Attempts to load an STL model from the givenInputStream
.STLReader.loadBinary
(InputStream stream, String meshName, Class<? extends Mesh3D> meshClass) Attempts to load an STL model from the givenInputStream
.STLReader.loadBinary
(String fileName, int bufSize, Class<? extends Mesh3D> meshClass) Attempts to load an STL model from the given file path.STLReader.loadBinary
(String fileName, Class<? extends Mesh3D> meshClass) Constructors in toxi.geom.mesh with parameters of type Mesh3DModifierConstructorDescriptionBoxSelector
(Mesh3D mesh, AABB box) DefaultSelector
(Mesh3D mesh) PlaneSelector
(Mesh3D mesh, Plane plane, Plane.Classifier classifier) PlaneSelector
(Mesh3D mesh, Plane plane, Plane.Classifier classifier, float tolerance) VertexSelector
(Mesh3D mesh) Creates a new selector assigned to the given mesh -
Uses of Mesh3D in toxi.geom.nurbs
Methods in toxi.geom.nurbs that return Mesh3DModifier and TypeMethodDescriptionNurbsMeshCreator.createControlMesh
(Mesh3D mesh) NurbsMeshCreator.createMesh
(Mesh3D mesh, int resU, int resV, boolean isClosed) Methods in toxi.geom.nurbs with parameters of type Mesh3DModifier and TypeMethodDescriptionNurbsMeshCreator.createControlMesh
(Mesh3D mesh) NurbsMeshCreator.createMesh
(Mesh3D mesh, int resU, int resV, boolean isClosed) -
Uses of Mesh3D in toxi.processing
Methods in toxi.processing with parameters of type Mesh3DModifier and TypeMethodDescriptionfinal void
Draws a mesh instance using flat shading.final void
Draws a mesh instance.final void
Draws a mesh instance.final void
ToxiclibsSupport.meshNormalMapped
(Mesh3D mesh, boolean vertexNormals) Draws the given mesh with each face or vertex tinted using its related normal vector as RGB color.final void
ToxiclibsSupport.meshNormalMapped
(Mesh3D mesh, NormalMapper mapper, boolean vertexNormals) final void
ToxiclibsSupport.texturedMesh
(Mesh3D mesh, processing.core.PImage tex, boolean smooth) -
Uses of Mesh3D in toxi.volume
Methods in toxi.volume that return Mesh3DModifier and TypeMethodDescriptionArrayIsoSurface.computeSurfaceMesh
(Mesh3D mesh, float iso) Computes the surface mesh for the given volumetric data and iso value.HashIsoSurface.computeSurfaceMesh
(Mesh3D mesh, float iso) IsoSurface.computeSurfaceMesh
(Mesh3D mesh, float iso) Computes the surface mesh for the given iso value.Methods in toxi.volume with parameters of type Mesh3DModifier and TypeMethodDescriptionMeshLatticeBuilder.buildLattice
(WETriangleMesh mesh, Mesh3D targetMesh, float isoValue) ArrayIsoSurface.computeSurfaceMesh
(Mesh3D mesh, float iso) Computes the surface mesh for the given volumetric data and iso value.HashIsoSurface.computeSurfaceMesh
(Mesh3D mesh, float iso) IsoSurface.computeSurfaceMesh
(Mesh3D mesh, float iso) Computes the surface mesh for the given iso value.MeshVoxelizer.voxelizeMesh
(Mesh3D mesh) MeshVoxelizer.voxelizeMesh
(Mesh3D mesh, float iso)