MeshPrincipalCurvatureList

ReferencesSince v9.0
Provides access to the principal curvatures of a mesh object.

Properties

Capacity

#Since v9.0
public int Capacity { get; set; }
Gets or sets the total number of principal curvatures the internal data structure can hold without resizing.

Count

#Since v9.0
public int Count { get; set; }
Gets or sets the number of principal curvatures.
Count
Explicit

ICollection.IsSynchronized

#
bool ICollection.IsSynchronized
Explicit

ICollection.SyncRoot

#
Explicit

IList.IsFixedSize

#
bool IList.IsFixedSize
Explicit

IList.IsReadOnly

#
bool IList.IsReadOnly

Indexers

Explicit

IList.this[]

#
object IList.this[int index]
index (int)

this[]

#Since v9.0
public SurfaceCurvature this[int index] { get; set; }
Gets or sets the principal curvature at the given index.
index (int)
The principal curvature at [index].

Methods

Add

#Since v9.0
public int Add(SurfaceCurvature surfaceCurvature)
Adds a new principal curvature to the end of the principal curvature list.
surfaceCurvature (SurfaceCurvature)Principal curvature to append.
The index of the newly added principal curvature.

Clear

#Since v9.0
public void Clear()
Clears the principal curvature list on the mesh.

Destroy

#Since v9.0
public void Destroy()
Releases all memory allocated to store principal curvatures. The list capacity will be 0 after this call.

Subsequent calls can add new items.

GetCurvatureStats

#Since v9.0
public MeshCurvatureStats GetCurvatureStats(CurvatureStyle curvatureStyle)
Gets the mesh's curvature statistics.
Remarks: If the mesh carries no principal curvatures, the result is a zero range with Count 0 rather than an error.
curvatureStyle (CurvatureStyle)The curvature style.
The mesh's curvature statistics.

GetEnumerator

#Since v9.0
public IEnumerator<SurfaceCurvature> GetEnumerator()
Gets an enumerator that yields all principal curvatures in this collection.
The enumerator.

SetSurfaceCurvature

#Since v9.0
public bool SetSurfaceCurvature(int index, SurfaceCurvature surfaceCurvature)
Sets or adds a principal curvature to the principal curvature iist.

If [index] is less than [Count], the existing principal curvature at [index] will be modified.

If [index] equals [Count], a new principal curvature is appended to the end of the principal curvature list.

If [index] is larger than [Count], the function will return false.

index (int)Index of vertex color to set. If index equals Count, then the color will be appended.
surfaceCurvature (SurfaceCurvature)Principal curvature to set.
true on success, false on failure.
Explicit

ICollection<SurfaceCurvature>.Add

#Since v9.0
item (SurfaceCurvature)
void ICollection<SurfaceCurvature>.CopyTo(SurfaceCurvature[] array, int arrayIndex)
array (SurfaceCurvature[])
arrayIndex (int)
Explicit

IList<SurfaceCurvature>.IndexOf

#
item (SurfaceCurvature)
Explicit

IList<SurfaceCurvature>.Insert

#
void IList<SurfaceCurvature>.Insert(int index, SurfaceCurvature item)
index (int)
item (SurfaceCurvature)
Explicit

IList<SurfaceCurvature>.RemoveAt

#
void IList<SurfaceCurvature>.RemoveAt(int index)
index (int)
Explicit

ICollection.CopyTo

#
void ICollection.CopyTo(Array array, int index)
array (Array)
index (int)
Explicit

IEnumerable.GetEnumerator

#Since v9.0
IEnumerator IEnumerable.GetEnumerator()
Explicit

IList.Add

#
int IList.Add(object value)
value (object)
Explicit

IList.Contains

#
bool IList.Contains(object value)
value (object)
Explicit

IList.IndexOf

#
int IList.IndexOf(object value)
value (object)
Explicit

IList.Insert

#
void IList.Insert(int index, object value)
index (int)
value (object)
Explicit

IList.Remove

#
void IList.Remove(object value)
value (object)
Explicit

IList.RemoveAt

#
void IList.RemoveAt(int index)
index (int)