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.
Gets or sets the number of principal curvatures.
Implements: Count
Indexers
Methods
Adds a new principal curvature to the end of the principal curvature list.
Parameters:
| surfaceCurvature (SurfaceCurvature) | Principal curvature to append. |
Returns: The index of the newly added principal curvature.
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.
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.
Parameters:
| curvatureStyle (CurvatureStyle) | The curvature style. |
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.
Parameters:
| index (int) | Index of vertex color to set. If index equals Count, then the color will be appended. |
| surfaceCurvature (SurfaceCurvature) | Principal curvature to set. |
Returns: true on success, false on failure.
Parameters:
| item (SurfaceCurvature) |
Parameters:
| item (SurfaceCurvature) |
Parameters:
| array (SurfaceCurvature[]) | |
| arrayIndex (int) |
Parameters:
| item (SurfaceCurvature) |
Parameters:
| item (SurfaceCurvature) |
Parameters:
| index (int) | |
| item (SurfaceCurvature) |
Parameters:
| index (int) |