Click or drag to resize

CurveKinkDefinitionIsCurvatureKink Method (Vector3d, Vector3d)

True if the ratio min/max <= CurvatureKinkRadiusRatio, where min and max are the minimum and maximum lengths of curvatureFromBelow and curvatureFromAbove, or if the angle between curvatureFromBelow and curvatureFromAbove is > KinkAngleDegrees. If a curvature vector has length <= CurvatureKinkZeroTolerance, it is treated as flat: its length is treated as CurvatureKinkZeroTolerance in the ratio and its direction is ignored, so the angle test is only done when both lengths are > CurvatureKinkZeroTolerance. Two flat curvatures are never a kink. When CurvatureKinkZeroTolerance = 0, both tests are scale independent. When CurvatureKinkZeroTolerance > 0, the test is scale dependent.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public bool IsCurvatureKink(
	Vector3d curvatureFromBelow,
	Vector3d curvatureFromAbove
)

Parameters

curvatureFromBelow
Type: Rhino.GeometryVector3d
curvatureFromAbove
Type: Rhino.GeometryVector3d

Return Value

Type: Boolean
True if either curvature vector is not valid or if, based on the tests described above, they are different enough to be considered a "curvature kink."
See Also