Type parameters:
| T | Type to assist. |
Constructors
CurveAssistant
#Abstract constructor, assigns Type and TypeId fields based on T.
protected CurveAssistant()
Properties
IsReimplementation
#Gets whether or not this assistant is a type-safe re-implementation of a more generic assistant.
Implements: IsReimplementation
ReimplementationBase
#Gets the base assistant (if any) this assistant is a re-implementation of.
Implements: ReimplementationBase
Methods
ConvertToNurbsCurve
#Convert the instance into a Rhino NURBS curve type which best describes the original instance. Note this method need not return a duplicate of the input, if a duplicate is required by the caller then a ReferenceEquals check must be performed.
Returns: A Rhino NURBS curve or null if there is no way to describe the curve geometry as NURBS.
ConvertToPolyline
#Convert the instance into a polyline.
ConvertToRhinoCurve
#Convert the instance into a Rhino curve type which best describes the original instance. Note this method need not return a duplicate of the input, if a duplicate is required by the caller then a ReferenceEquals check must be performed.
Returns: A Rhino curve or null if there is no Rhino curve type which remotely describes this instance of T.
DivideByCount
#Divide the curve into a number of equal length segments.
Returns: Array of division parameters, including the start and end of the domain.
DivideByDistance
#Divide a curve into segments whose end-points are a fixed distance apart.
Returns: Array of division parameters. The parameter at the end of the domain is not included if there's a remainder segment.
DivideByLength
#Divide the curve into equal length segments.
Returns: Array of division parameters. The parameter at the end of the domain is not included if there's a remainder segment.
EvaluateCurvature
#Evaluate the curvature of the curve at the given parameter.
public virtual Vector3d EvaluateCurvature()
T
instance,
Instance of T.
parameter,
Curve parameter.
side
Side of parameter to evaluate.
Returns: Curvature at parameter, or Vector3d.None if the curve cannot be evaluated at the given parameter.
EvaluateDerivatives
#Evaluate the first N derivatives of the curve at the given parameter.
public virtual Vector3d[] EvaluateDerivatives()
T
instance,
Instance of T.
parameter,
Curve parameter.
side,
Side of parameter to evaluate.
count
Number of derivatives to compute.
Returns: An array of N+1 derivatives, where the first element describes the position vector.
EvaluatePerpendicular
#Evaluate the perpendicular plane of the curve at the given parameter.
public virtual Plane EvaluatePerpendicular()
T
instance,
Instance of T.
parameter,
Curve parameter.
side
Side of parameter to evaluate.
Returns: Perpendicular at parameter, or Plane.None if the curve cannot be evaluated at the given parameter.
EvaluatePosition
#Evaluate the position of the curve at the given parameter.
Returns: Point at parameter, or Point3d.None if the curve cannot be evaluated at the given parameter.
EvaluateTangent
#Evaluate the tangent of the curve at the given parameter.
public virtual Vector3d EvaluateTangent()
T
instance,
Instance of T.
parameter,
Curve parameter.
side
Side of parameter to evaluate.
Returns: Tangent at parameter, or Vector3d.None if the curve cannot be evaluated at the given parameter.
Explode
#Explode a curve into smaller segments, each representing a subtype of curve.
Returns: Array of subcurves.
Extend
#Extend the curve.
public virtual object Extend()
T
instance,
Instance of T.
start,
Extension properties at start.
end
Extension properties at end.
Returns: Modified curve.
FindClosestParameter
#Find the point on the curve closest to a test point.
Returns: Parameter or double.NaN if no parameter could be found.
FindCurvatureExtremes
#Find the two parameters with the lowest and highest curvature.
FindDiscontinuities
#Find all discontinuities along the curve up to and including a target continuity type.
Returns: Array of curve discontinuities.
FindFurthestParameter
#Find the point on the curve furthest from a test point.
Returns: Parameter or double.NaN if no parameter could be found.
FindPositionExtremes
#Find the two parameters closest to and furthest away from a plane.
GetEndPoints
#Get the end-points of a curve.
GetEndTangents
#Get the tangents at the ends of a curve.
GetSpans
#Gets an array of curve domain spans. A span is a section of the curve that is reasonably simple in shape. Discontinuities in curves typically signal transitions from one span to another, but it depends on the curve type how it divides itself up.
Returns: Span domains.
Implements: BoundingBox
Implements: ConvertToNurbsCurve
Implements: ConvertToPolyline
Implements: ConvertToRhinoCurve
Implements: DivideByCount
Implements: DivideByDistance
Implements: DivideByLength
Implements: EvaluateCurvature
Implements: EvaluateDerivatives
Implements: EvaluatePerpendicular
Implements: EvaluatePosition
Implements: EvaluateTangent
Implements: Explode
Implements: ExplodeRecursive
Implements: Extend
Implements: FindClosestParameter
Implements: FindCurvatureExtremes
Implements: FindDiscontinuities
Implements: FindFurthestParameter
Implements: FindInflections
Implements: FindPositionExtremes
Implements: FlipDirection
Implements: GetDomain
Implements: GetEndPoints
Implements: GetEndTangents
Implements: GetLength
Implements: GetSpans
Implements: IntersectWith
Implements: IsLinear
Implements: IsLinear
Implements: IsPeriodic
Implements: IsPlanar
Implements: IsPlanar
Implements: LengthAtParameter
Implements: ParameterAtLength
Implements: SetDomain
Implements: Split
Implements: Trim
IntersectWith
#Find all the intersection parameters between this curve and a plane.
Returns: Collection of zero or more curve parameters.
IsLinear
#Determine the best fit line for this curve.
IsPlanar
#Determine the best fit plane for this curve.
LengthAtParameter
#Gets the length from the start of the curve to the given parameter.
Returns: Success or failure.
ParameterAtLength
#Get the parameter of a curve at a given length from the start.
Returns: True if length measurement was possible.
Split
#Split a curve into two parts.