Modifier and Type | Method and Description |
---|---|
static Mesh |
PolygonModifier.mergeMesh(List<Node> nodes)
Convert a whole node to a single transformed mesh
Vertex elements like normal/texture coordinates are not supported yet
|
static Mesh |
PolygonModifier.mergeMesh(Node node)
Convert a whole node to a single transformed mesh
Vertex elements like normal/texture coordinates are not supported yet
|
static Mesh |
PolygonModifier.mergeMesh(Scene scene)
Convert a whole scene to a single transformed mesh
Vertex elements like normal/texture coordinates are not supported yet
|
static Mesh[] |
PolygonModifier.splitMesh(Mesh mesh,
SplitMeshPolicy policy)
Split mesh into sub-meshes by
VertexElementMaterial . |
Mesh |
Torus.toMesh()
Convert current object to mesh
|
Mesh |
Sphere.toMesh()
Convert current object to mesh
|
Mesh |
RectangularTorus.toMesh()
Convert this primitive to
Mesh |
abstract Mesh |
Primitive.toMesh()
Convert current object to mesh
|
Mesh |
Plane.toMesh()
Convert current object to mesh
|
Mesh |
NurbsSurface.toMesh()
Convert the nurbs surface to the mesh
|
Mesh |
Mesh.toMesh()
Gets the Mesh instance from current entity.
|
Mesh |
IMeshConvertible.toMesh()
Convert current object to mesh
|
Mesh |
Cylinder.toMesh()
Convert current object to mesh
|
Mesh |
Box.toMesh()
Convert current object to mesh
|
static Mesh |
PolygonModifier.triangulate(Mesh mesh)
Convert a polygon-based mesh into full triangle mesh
|
Modifier and Type | Method and Description |
---|---|
static void |
PolygonModifier.buildTangentBinormal(Mesh mesh)
This will create tangent and binormal on the mesh
Normal is required, if normal is not existing on the mesh, it will also create the normal data from position.
|
static TriMesh |
TriMesh.fromMesh(Mesh mesh)
Create a TriMesh from given mesh object, the vertex declaration are based on the input mesh's structure.
|
static TriMesh |
TriMesh.fromMesh(Mesh mesh,
boolean useFloat)
Create a TriMesh from given mesh object, the vertex declaration are based on the input mesh's structure.
|
static TriMesh |
TriMesh.fromMesh(VertexDeclaration declaration,
Mesh mesh)
Create a TriMesh from given mesh object with given vertex layout.
|
static VertexElementNormal |
PolygonModifier.generateNormal(Mesh mesh)
Generate normal data from Mesh definition
|
static VertexElementUV |
PolygonModifier.generateUV(Mesh mesh)
Generate UV data from the given input mesh
|
static VertexElementUV |
PolygonModifier.generateUV(Mesh mesh,
VertexElementNormal normals)
Generate UV data from the given input mesh and specified normal data.
|
protected static ArrayList<int[]> |
Primitive.merge(Mesh mesh,
Vector4[][] positions,
Vector4[][] normals,
Vector2[][] uvs)
Merge the specified mesh, positions, normals and uvs.
|
protected static void |
Primitive.setup(Mesh mesh,
Vector4[] positions,
Vector4[] normals,
Vector4[] uvs)
Build the mesh from given positions/normals/uvs.
|
static Mesh[] |
PolygonModifier.splitMesh(Mesh mesh,
SplitMeshPolicy policy)
Split mesh into sub-meshes by
VertexElementMaterial . |
static Mesh |
PolygonModifier.triangulate(Mesh mesh)
Convert a polygon-based mesh into full triangle mesh
|
Constructor and Description |
---|
PolygonBuilder(Mesh mesh)
Initializes a new instance of the
PolygonBuilder class. |
Copyright © 2019. All rights reserved.