Table of Contents

Class SamplePointsMaterialGroup

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

materialID int

The 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

materialID int

The material index associated with this group

patches List<SamplePointsPatch>

The list of patches that belong to this group

Fields

MaterialID

The material index associated with this group

public int MaterialID

Field Value

int

Patches

The list of patches that belong to this material group

public List<SamplePointsPatch> Patches

Field Value

List<SamplePointsPatch>

Properties

EndVertex

The index of the last vertex in this group (from the last patch)

public int EndVertex { get; }

Property Value

int

StartVertex

The index of the first vertex in this group (from the first patch)

public int StartVertex { get; }

Property Value

int

TriangleCount

Total number of triangles across all patches in this group

public int TriangleCount { get; }

Property Value

int

VertexCount

The total number of vertices in this group, including both start and end vertices

public int VertexCount { get; }

Property Value

int

Methods

Clone()

Returns a clone of the current instance.

public SamplePointsMaterialGroup Clone()

Returns

SamplePointsMaterialGroup

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)

Parameters

volume CGVolume

The CGVolume whose Vertices and CrossCustomValues are used for the calculation

worldLength float

The total world-space length of the vertices in this group

uLength float

The total U-coordinate length of the vertices in this group