CurveKinkDefinition Class |
Namespace: Rhino.Geometry
The CurveKinkDefinition type exposes the following members.
| Name | Description | |
|---|---|---|
| CurveKinkDefinition |
Construct a new instance with default values.
| |
| CurveKinkDefinition(Double, Double, Boolean, Boolean) |
Create a CurveKinkDefinition with specified settings.
|
| Name | Description | |
|---|---|---|
| CurvatureKinkRadiusRatio |
If the ratio (minimum radius of curvature)/(maximum radius of curvature)
at a curvature discontinuity is < CurvatureKinkRadiusRatio,
then that curvature discontinuity is treated as a kink.
In particular, if CurvatureKinkRadiusRatio = 0, then curvature radius discontinuity checks are disabled.
| |
| CurvatureKinkZeroTolerance |
If the curvature <= CurvatureKinkZeroTolerance, then it is treated as flat:
its value is treated as CurvatureKinkZeroTolerance and the direction of the
curvature vector is ignored. Put another way, every radius of curvature
>= 1/CurvatureKinkZeroTolerance is treated as 1/CurvatureKinkZeroTolerance.
If you know of a finite radius R that should be considered flat, set this to 1.0/R.
If CurvatureKinkZeroTolerance > 0, then the curvature
kink test is scale dependent.
If CurvatureKinkZeroTolerance = 0, then the curvature kink
test is independent of scale. The default is 0.
| |
| KinkAngleDegrees |
The angle, in degrees, used to determine if when an abrupt change in tangent or curvature vector
direction is a kink.
| |
| KinkAtCurvatureChange |
Returns true if curvature discontinuities should be tested when finding kinks.
The angle used vector curvature direction discontinuities is KinkAngleDegrees().
The ratio used for radius of curvature discontinuities is CurvatureKinkRadiusRatio().
| |
| KinkAtTangentChange |
Returns true if tangent discontinuities should be tested when finding kinks.
The angle used for testing is KinkAngleDegrees().
|
| Name | Description | |
|---|---|---|
| ComputeCurvatureRadiusRatio |
Calculates the curvature radius ratio and the angle between the two curvature vectors,
as used by IsCurvatureKink(Vector3d, Vector3d).
| |
| Dispose |
Actively reclaims unmanaged resources that this instance uses.
| |
| Dispose(Boolean) |
For derived class implementers.
This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method. You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true. Also, you must call the base virtual method within your overriding method. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize |
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
(Overrides ObjectFinalize.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsCurvatureKink(Curve, Double) |
True if there is a curvature discontinuity at curve(t) that passes the curvature kink test.
| |
| IsCurvatureKink(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.
| |
| IsCurvatureZero(Double) |
Returns true if the curvature vector is considered to be zero given the
CurvatureKinkZeroTolerance | |
| IsCurvatureZero(Vector3d) |
Returns true if the curvature vector is considered to be zero given the
CurvatureKinkZeroTolerance | |
| IsKink |
True if there is a kink at curve(t).
| |
| IsTangentKink(Curve, Double) |
True if there is a tangent discontinuity at curve(t) and the agnle between the two tangents
is > KinkAngleDegrees | |
| IsTangentKink(Vector3d, Vector3d) |
True if the angle between tangent_from_below and tangent_from_above is > KinkAngleDegrees | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |