Class SamplePointsMaterialGroup
- Namespace
- FluffyUnderware.Curvy.Generator
A section of one or more patches, all sharing the same MaterialID
public class SamplePointsMaterialGroup
- Inheritance
-
SamplePointsMaterialGroup
Constructors
SamplePointsMaterialGroup(int)
Initializes a new instance of SamplePointsMaterialGroup with the specified material ID and an empty patch list
public SamplePointsMaterialGroup(int materialID)
Parameters
materialIDintThe material index associated with this group
SamplePointsMaterialGroup(int, List<SamplePointsPatch>)
Initializes a new instance of SamplePointsMaterialGroup with the specified material ID and patches
public SamplePointsMaterialGroup(int materialID, List<SamplePointsPatch> patches)
Parameters
materialIDintThe material index associated with this group
patchesList<SamplePointsPatch>The list of patches that belong to this group
Fields
MaterialID
The material index associated with this group
public int MaterialID
Field Value
Patches
The list of patches that belong to this material group
public List<SamplePointsPatch> Patches
Field Value
Properties
EndVertex
The index of the last vertex in this group (from the last patch)
public int EndVertex { get; }
Property Value
StartVertex
The index of the first vertex in this group (from the first patch)
public int StartVertex { get; }
Property Value
TriangleCount
Total number of triangles across all patches in this group
public int TriangleCount { get; }
Property Value
VertexCount
The total number of vertices in this group, including both start and end vertices
public int VertexCount { get; }
Property Value
Methods
Clone()
Returns a clone of the current instance.
public SamplePointsMaterialGroup Clone()
Returns
GetLengths(CGVolume, out float, out float)
Calculates the world-space length and the U-coordinate length of this group's vertex range within the given volume
public void GetLengths(CGVolume volume, out float worldLength, out float uLength)