public class MeshPrincipalCurvatureList : IResizableList<SurfaceCurvature>, IList, IReadOnlyList<SurfaceCurvature>
Provides access to the principal curvatures of a mesh object.
Properties
Gets or sets the total number of principal curvatures the internal data structure can hold without resizing.
Indexers
Methods
Adds a new principal curvature to the end of the principal curvature list.
Returns: The index of the newly added principal curvature.
Releases all memory allocated to store principal curvatures. The list capacity will be 0 after this call.
Subsequent calls can add new items.
public void Destroy()
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.
Returns: The mesh's curvature statistics.
Gets an enumerator that yields all principal curvatures in this collection.
Returns: The enumerator.
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.
public bool SetSurfaceCurvature()
index,
Index of vertex color to set. If index equals Count, then the color will be appended.
surfaceCurvature
Principal curvature to set.
Returns: true on success, false on failure.