Class Mesh
CSG mesh object
Inheritance
Mesh
Namespace: CSG
Assembly: FlaxEngine.dll
File: Engine/CSG/CSGMesh.h
Syntax
public class Mesh
Fields
Index
Mesh index (assigned by the builder)
Declaration
public int32 Index = 0
Field Value
int32
|
Methods
Add(const Mesh* other)
Add other mesh data
Declaration
public void Add(const Mesh* other)
Parameters
Mesh
other
Other mesh to merge with |
Build(Brush* parentBrush)
Build mesh from brush
Declaration
public void Build(Brush* parentBrush)
Parameters
Brush
parentBrush
Parent brush to use |
GetBounds()
GetEdges()
Gets array with edges
Declaration
public Array<HalfEdge>* GetEdges() const
Returns
Array<HalfEdge>
Half edges |
GetPolygons()
Gets array with polygons
Declaration
public Array<Polygon>* GetPolygons() const
Returns
Array<Polygon>
Polygon |
GetSurfaces()
Gets array with surfaces
Declaration
public Array<Surface>* GetSurfaces() const
Returns
Array<Surface>
Surfaces |
GetVertices()
Gets array with vertices
Declaration
public Array<Vector3>* GetVertices() const
Returns
Array<Vector3>
Vertices |
HasMode(Mode mode)
Check if any of this brush sub-brushes is on given type
Declaration
public bool HasMode(Mode mode) const
Parameters
Mode
mode
|
Returns
bool
True if brush is using given mode |
PerformOperation(Mesh* other)
Perform CSG operation with another mesh
Declaration
public void PerformOperation(Mesh* other)
Parameters
Mesh
other
Other mesh data to process |
Triangulate(RawData& data, Array<MeshVertex>& cacheVB)
Triangulate mesh
Declaration
public bool Triangulate(RawData& data, Array<MeshVertex>& cacheVB) const
Parameters
RawData
data
Result data |
Array<MeshVertex>
cacheVB
Cache data |
Returns
bool
True if cannot generate valid mesh data (due to missing triangles etc.) |