RhinoCommonExtensionMethods
Some extension methods for various RhinoCommon types.
Methods
FindCusps
#Find parameters where cusps occur within the given interval. Note that the limits of the interval are rejected as possible cusp locations.
Find parameters where cusps occur within the interior of spans.
Make sure the Rhino window hosting the specified document has focus.
Evaluate the level of discontinuity at a given curve parameter.
public static DiscontinuityLevel GetContinuityLevel()
this Curve
curve,
Curve.
t,
Parameter on curve.
angleTolerance = 0.01,
Angle tolerance between normalised derivatives in radians.
relativeTolerance = 0.01
Relative tolerance between normalised derivatives.
Returns: Highest level of continuity.
Gets whether this document contains any selectable (i.e. non-hidden and non-locked) object of the given type.
Create a new material with inverted back and front face properties.
Close a curve by inserting a line segment from the end to the start point.
Returns: Closed curve or null.
Redraw all Rhino viewports. All GH code should use this method rather than ViewTable.Redraw().
public static void RedrawAndReturnImmediately()