Class RawData
Represents raw CSG mesh data after triangulation. Can be used to export it to model vertex/index buffers. Separates triangles by materials.
Inheritance
RawData
Namespace: CSG
Assembly: FlaxEngine.dll
File: Engine/CSG/CSGData.h
Syntax
public class RawData
Constructors
~RawData()
RawData()
Fields
Brushes
The brushes.
Declaration
public Dictionary<Guid, BrushData> Brushes
Field Value
Dictionary<Guid, BrushData>
|
Slots
The slots.
Declaration
public Array<Slot* > Slots
Field Value
Array<Slot >
|
Methods
AddSurface(Brush* brush, int32 brushSurfaceIndex, const Guid& surfaceMaterial, float scaleInLightmap, const Rectangle& lightmapUVsBox, const MeshVertex* firstVertex, int32 vertexCount)
Declaration
public void AddSurface(Brush* brush, int32 brushSurfaceIndex, const Guid& surfaceMaterial, float scaleInLightmap, const Rectangle& lightmapUVsBox, const MeshVertex* firstVertex, int32 vertexCount)
Parameters
Brush
brush
|
int32
brushSurfaceIndex
|
Guid
surfaceMaterial
|
float
scaleInLightmap
|
Rectangle
lightmapUVsBox
|
MeshVertex
firstVertex
|
int32
vertexCount
|
GetOrAddSlot(const Guid& material)
Gets or adds the slot for the given material.
Declaration
public Slot* GetOrAddSlot(const Guid& material)
Parameters
Guid
material
The material. |
Returns
Slot
The geometry slot. |
RemoveEmptySlots()
Removes the empty slots.
Declaration
public void RemoveEmptySlots()
ToModelData(ModelData& modelData)
Outputs mesh data to the ModelData storage container.
Declaration
public void ToModelData(ModelData& modelData) const
Parameters
ModelData
modelData
The result model data. |