Click or drag to resize

CurveKinkDefinitionComputeCurvatureRadiusRatio Method

Calculates the curvature radius ratio and the angle between the two curvature vectors, as used by IsCurvatureKink(Vector3d, Vector3d).

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public bool ComputeCurvatureRadiusRatio(
	Vector3d curvatureFromBelow,
	Vector3d curvatureFromAbove,
	out double radiusOfCurvatureRatio,
	out double curvatureVectorAngleDegrees
)

Parameters

curvatureFromBelow
Type: Rhino.GeometryVector3d
curvatureFromAbove
Type: Rhino.GeometryVector3d
radiusOfCurvatureRatio
Type: SystemDouble
min/max of the lengths of curvatureFromBelow and curvatureFromAbove, where a length <= CurvatureKinkZeroTolerance is treated as CurvatureKinkZeroTolerance. This is 1 when both lengths are <= CurvatureKinkZeroTolerance.
curvatureVectorAngleDegrees
Type: SystemDouble
The angle between curvatureFromBelow and curvatureFromAbove. If one or both lengths are <= CurvatureKinkZeroTolerance, the direction is ignored and this returns RhinoMath.UnsetValue.

Return Value

Type: Boolean
True if the calculation is successful.
See Also