The class for holding info on the shape of an object.
More...
|
|
| Mesh () |
| | Constructs a normal cube mesh.
|
| | Mesh (Vector3[] points, bool _3d=false, bool includeTriCalc=true) |
| | The recommended constructor. Makes a mesh from a set of points.
|
| | Mesh (Triangle3D[] tris) |
| | Gets a mesh from triangles.
|
| unsafe int | GetSize () |
| | Gets the size (in bytes) of the mesh.
|
|
|
double | MaximumDistanceFromCenter |
| | The maximum distance of the origin to mesh. If something can only happen if the object is within a certain distance of the origin, this is the value to use, as it is the maximum distance of a point to the origin.
|
|
|
Vector3[] | MeshActualPoints [get] |
| | The points that make up the mesh. Not changed for movement.
|
|
Vector3[] | MeshPoints [get, set] |
| | The points that make up the mesh. Call UpdateMesh to change this!
|
|
Vector3?[] | MeshPointColors [get, set] |
| | The color of the indices.
|
|
Triangle3D[] | MeshTriangles [get, set] |
| | The triangles that make up the mesh. Used for collision. Call UpdateMesh to change this!
|
|
Triangle3D[] | ActualTriangles [get, set] |
| | The triangles that make up the mesh. Call UpdateMesh to change this! Used for rendering. Not changed for movement.
|
The class for holding info on the shape of an object.
◆ Mesh() [1/2]
| Angulos._3d.ObjectRepresentation.Mesh.Mesh |
( |
Vector3[] | points, |
|
|
bool | _3d = false, |
|
|
bool | includeTriCalc = true ) |
|
inline |
The recommended constructor. Makes a mesh from a set of points.
- Parameters
-
| points | |
| _3d | |
| includeTriCalc | DONT SET THIS UNLESS YOU KNOW WHAT YOU ARE DOING |
◆ Mesh() [2/2]
| Angulos._3d.ObjectRepresentation.Mesh.Mesh |
( |
Triangle3D[] | tris | ) |
|
|
inline |
Gets a mesh from triangles.
- Parameters
-
◆ GetSize()
| unsafe int Angulos._3d.ObjectRepresentation.Mesh.GetSize |
( |
| ) |
|
|
inline |
Gets the size (in bytes) of the mesh.
- Returns
The documentation for this class was generated from the following file:
- Sharp/_3d/ObjectRepresentation/Mesh.cs