Table of Contents

Class SamplePointsMaterialGroupCollection

List of Material Groups

public class SamplePointsMaterialGroupCollection : List<SamplePointsMaterialGroup>
Inheritance
SamplePointsMaterialGroupCollection

Constructors

SamplePointsMaterialGroupCollection()

Initializes a new empty instance of SamplePointsMaterialGroupCollection

public SamplePointsMaterialGroupCollection()

SamplePointsMaterialGroupCollection(IEnumerable<SamplePointsMaterialGroup>)

Initializes a new instance of SamplePointsMaterialGroupCollection containing elements copied from the specified collection

public SamplePointsMaterialGroupCollection(IEnumerable<SamplePointsMaterialGroup> collection)

Parameters

collection IEnumerable<SamplePointsMaterialGroup>

The collection whose elements are copied into the new instance

SamplePointsMaterialGroupCollection(int)

Initializes a new instance of SamplePointsMaterialGroupCollection with the specified initial capacity

public SamplePointsMaterialGroupCollection(int capacity)

Parameters

capacity int

The initial number of elements the collection can hold

Fields

AspectCorrectionU

A multiplication applied on the U coordinate as part of the aspect correction

public float AspectCorrectionU

Field Value

float

AspectCorrectionV

A multiplication applied on the V coordinate as part of the aspect correction

public float AspectCorrectionV

Field Value

float

MaterialID

The material index associated with this collection

public int MaterialID

Field Value

int

Properties

TriangleCount

Total number of triangles across all material groups in this collection

public int TriangleCount { get; }

Property Value

int

Methods

CalculateAspectCorrection(CGVolume, CGMaterialSettingsEx)

Calculates the aspect correction factors (AspectCorrectionU and AspectCorrectionV) based on the volume's geometry and the material settings

public void CalculateAspectCorrection(CGVolume volume, CGMaterialSettingsEx matSettings)

Parameters

volume CGVolume

The volume whose cross shape geometry is used to compute the correction

matSettings CGMaterialSettingsEx

The material settings that specify the aspect correction mode