Click or drag to resize

MeshPrincipalCurvatureListSetSurfaceCurvature Method

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.

Namespace:  Rhino.Geometry.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public bool SetSurfaceCurvature(
	int index,
	SurfaceCurvature surfaceCurvature
)

Parameters

index
Type: SystemInt32
Index of vertex color to set. If index equals Count, then the color will be appended.
surfaceCurvature
Type: Rhino.GeometrySurfaceCurvature
Principal curvature to set.

Return Value

Type: Boolean
true on success, false on failure.
See Also