public abstract class Primitive extends Entity implements IMeshConvertible
Constructor and Description |
---|
Primitive(String name)
Initializes a new instance of the
Primitive class. |
Modifier and Type | Method and Description |
---|---|
protected static ArrayList<int[]> |
merge(Mesh mesh,
Vector4[][] positions,
Vector4[][] normals,
Vector2[][] uvs)
Merge the specified mesh, positions, normals and uvs.
|
protected static void |
setup(Mesh mesh,
Vector4[] positions,
Vector4[] normals,
Vector4[] uvs)
Build the mesh from given positions/normals/uvs.
|
abstract Mesh |
toMesh()
Convert current object to mesh
|
getBoundingBox, getExcluded, getParentNode, getParentNodes, setExcluded, setParentNode
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
protected static ArrayList<int[]> merge(Mesh mesh, Vector4[][] positions, Vector4[][] normals, Vector2[][] uvs)
mesh
- Mesh.positions
- Positions.normals
- Normals.uvs
- Uvs.protected static void setup(Mesh mesh, Vector4[] positions, Vector4[] normals, Vector4[] uvs)
mesh
- Mesh.positions
- Positions.normals
- Normals.uvs
- Uvs.public abstract Mesh toMesh()
toMesh
in interface IMeshConvertible
Copyright © 2019. All rights reserved.