M_Rhino_Geometry_Curve_IsClosable_1 - mcneel/rhinocommon-api-docs GitHub Wiki
Decide if it makes sense to close off this curve by moving the endpoint to the start based on start-end gap size and length of curve as approximated by chord defined by 6 points.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public bool IsClosable(
double tolerance,
double minimumAbsoluteSize,
double minimumRelativeSize
)
VB
Public Function IsClosable (
tolerance As Double,
minimumAbsoluteSize As Double,
minimumRelativeSize As Double
) As Boolean
- tolerance
- Type: System.Double
Maximum allowable distance between start and end. If start - end gap is greater than tolerance, this function will return false. - minimumAbsoluteSize
- Type: System.Double
If greater than 0.0 and none of the interior sampled points are at least minimumAbsoluteSize from start, this function will return false. - minimumRelativeSize
- Type: System.Double
If greater than 1.0 and chord length is less than minimumRelativeSize*gap, this function will return false.
Type: Boolean
true if start and end points are close enough based on above conditions.
Supported in: 6.0.16224.21491, 5D58w