CurveLocus
References[IoId("00000000-11ac-438f-9612-6833666f90d0")]
public readonly struct CurveLocus : IStorable, IEquatable<CurveLocus>, IComparable<CurveLocus>
Represents a parameter or locus on or near a curve. This type replaces the simple numeric curve parameter as used in RhinoCommon and Grasshopper 1.0 with a more flexible and forgiving approach.
Constructors
Properties
Methods
ResolveToParameter
#Resolve this locus to an actual curve parameter.
ResolveToParameter
#Resolve this locus to an actual curve parameter.
ResolveToParameter
#Resolve this locus to an actual curve parameter.
ResolveToParameter
#Resolve this locus to an actual curve parameter.
ResolveToParameter
#public bool ResolveToParameter(object curve, ICurveAssistant assistant, Curve rhinoCurve, out double parameter)
Resolve this locus to an actual curve parameter on a Rhino curve. This resolver is needed when a locus is defined on some unknown curve type, but it needs to be transferred onto the Curve conversion of that unknown curve type. I.e. let's say the locus is defined on an Arc, and the arc has already been converted into an ArcCurve or maybe even a NurbsCurve. Use this method to revolve the parameter on the ArcCurve or NurbsCurve implied by the locus and the original Arc.
Parameters:
| curve (object) | Curve on which this locus is defined. |
| assistant (ICurveAssistant) | Curve assistant override. If null, a fitting assistant will be found. |
| rhinoCurve (Curve) | Rhino curve whose parameter we're interested in. |
| parameter (out double) | Resulting curve parameter. |
Returns: True if mapping was successful, even if the mapping went beyond the curve domain.
ResolveToParameter
#Resolve this locus to an actual curve parameter.
Parameters:
| curve (object) | Curve to map on to. |
| assistant (ICurveAssistant) | Curve assistant override. If null, a fitting assistant will be found. |
| parameter (out double) | Resulting curve parameter. |
Returns: True if mapping was successful, even if the mapping went beyond the curve domain.
ResolveToParameter
#Resolve this locus to an actual curve parameter.
ResolveToParameter
#Resolve this locus to an actual curve parameter.
Parameters:
| rectangle (Rectangle3d) | Curve to map on to. |
| parameter (out double) | Resulting curve parameter. |
Returns: True if mapping was successful, even if the mapping went beyond the curve domain.
ResolveToParameter
#Resolve this locus to an actual curve parameter.
Convertors
| Operation | Result | Description | ||
|---|---|---|---|---|
| implicit | double | CurveLocus | Create a curve locus from a parameter. | |
| implicit | Point3d | CurveLocus | Create a curve locus from a point. | |