NaughtyCurveCurveAssistant

CurveAssistant<1>

Properties

IsReimplementation

Gets whether or not this assistant is a type-safe re-implementation of a more generic assistant.
public bool IsReimplementation { get; }
inherited fromCurveAssistant<T>
IsReimplementation

ReimplementationBase

Gets the base assistant (if any) this assistant is a re-implementation of.
public ICurveAssistant ReimplementationBase { get; }
inherited fromCurveAssistant<T>

Type

Gets the type associated with this assistant.
public Type Type { get; }
inherited fromCurveAssistant<T>
Type

Methods

BoundingBox

#
public override BoundingBox BoundingBox(
instance
)

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.
public virtual NurbsCurve ConvertToNurbsCurve(
T
instance
Instance to convert.
)
inherited fromCurveAssistant<T>
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.
public virtual Polyline ConvertToPolyline(
T
instance,
Instance to convert.
deviation,
Maximum allowed deviation (absolute tolerance) between original curve and resulting polyline.
angle
Maximum allowed angle between original curve tangents and polyline corners.
)
inherited fromCurveAssistant<T>

ConvertToRhinoCurve

#
public override Curve ConvertToRhinoCurve(
instance
)

DivideByCount

#
public override double[] DivideByCount(
instance,
count
)

DivideByDistance

#
public override double[] DivideByDistance(
instance,
distance
)

DivideByLength

#
public override double[] DivideByLength(
instance,
length
)

EvaluateCurvature

#
public override Vector3d EvaluateCurvature(
instance,
parameter,
side
)

EvaluateDerivatives

#
public override Vector3d[] EvaluateDerivatives(
instance,
parameter,
side,
count
)

EvaluatePerpendicular

#
public override Plane EvaluatePerpendicular(
instance,
parameter,
side
)

EvaluatePosition

#
public override Point3d EvaluatePosition(
instance,
parameter
)

EvaluateTangent

#
public override Vector3d EvaluateTangent(
instance,
parameter,
side
)

Explode

Explode a curve into smaller segments, each representing a subtype of curve.
public virtual object[] Explode(
T
instance
Instance.
)
inherited fromCurveAssistant<T>
Array of subcurves.

ExplodeRecursive

Explode a curve into the smallest possible segments.
public virtual object[] ExplodeRecursive(
T
instance
Instance.
)
inherited fromCurveAssistant<T>
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.
)
inherited fromCurveAssistant<T>
Modified curve.

FindClosestParameter

#
public override double FindClosestParameter(
instance,
point
)

FindCurvatureExtremes

Find the two parameters with the lowest and highest curvature.
public virtual void FindCurvatureExtremes(
T
instance,
Instance.
out double
minimum,
The (or one of the) parameters on the curve with the lowest curvature.
out double
maximum
The (or one of the) parameters on the curve with the highest curvature.
)
inherited fromCurveAssistant<T>

FindDiscontinuities

Find all discontinuities along the curve up to and including a target continuity type.
public virtual Discontinuity[] FindDiscontinuities(
T
instance,
Instance.
order
Maximum continuity order to search for.
)
inherited fromCurveAssistant<T>
Array of curve discontinuities.

FindFurthestParameter

Find the point on the curve furthest from a test point.
public virtual double FindFurthestParameter(
T
instance,
Instance of T.
point
Test point.
)
inherited fromCurveAssistant<T>
Parameter or double.NaN if no parameter could be found.

FindInflections

Find all inflection points along the curve.
public virtual double[] FindInflections(
T
instance
Instance.
)
inherited fromCurveAssistant<T>
Array of curve parameters.

FindPositionExtremes

Find the two parameters closest to and furthest away from a plane.
public virtual void FindPositionExtremes(
T
instance,
Instance.
plane,
Plane.
out double
minimum,
The (or one of the) parameters on the curve closest to the plane.
out double
maximum
The (or one of the) parameters on the curve furthest from the plane.
)
inherited fromCurveAssistant<T>

FlipDirection

Flip the curve.
public virtual object FlipDirection(
T
instance
Instance to flip.
)
inherited fromCurveAssistant<T>
Flipped curve.

GetDomain

Get the domain of an instance of T.
public virtual Interval GetDomain(
T
instance
Instance of T.
)
inherited fromCurveAssistant<T>
Domain of curve.

GetEndPoints

Get the end-points of a curve.
public virtual void GetEndPoints(
T
instance,
Instance.
out Point3d
start,
Point at start.
out Point3d
end
Point at end.
)
inherited fromCurveAssistant<T>

GetEndTangents

Get the tangents at the ends of a curve.
public virtual void GetEndTangents(
T
instance,
Instance.
start,
Tangent at start.
end
Tangent at end.
)
inherited fromCurveAssistant<T>

GetLength

Measure the total length of this curve.
public virtual double GetLength(
T
instance
Instance.
)
inherited fromCurveAssistant<T>
Length.

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.
public virtual Interval[] GetSpans(
T
instance
Instance.
)
inherited fromCurveAssistant<T>
Span domains.

IntersectWith

Find all the intersection parameters between this curve and a plane.
public virtual double[] IntersectWith(
T
instance,
Curve.
plane
Plane.
)
inherited fromCurveAssistant<T>
Collection of zero or more curve parameters.

IsClosed

#
public override bool IsClosed(
instance
)

IsLinear

Determine whether the curve is linear.
public virtual bool IsLinear(
T
instance,
Instance.
tolerance
Maximum allowed linearity deviation.
)
inherited fromCurveAssistant<T>
True if curve is linear.

IsLinear

Determine the best fit line for this curve.
public virtual void IsLinear(
T
instance,
Instance.
out Line
line,
Line which best approximates curve.
out double
deviation
Maximum deviation from line.
)
inherited fromCurveAssistant<T>

IsPeriodic

Determine whether the curve is periodic.
public virtual bool IsPeriodic(
T
instance
Instance of T.
)
inherited fromCurveAssistant<T>
Boolean value indicating periodicity.

IsPlanar

Determine whether the curve is planar.
public virtual bool IsPlanar(
T
instance,
Instance of T.
tolerance
Maximum allowed planarity deviation.
)
inherited fromCurveAssistant<T>
Boolean value indicating planarity.

IsPlanar

Determine the best fit plane for this curve.
public virtual void IsPlanar(
T
instance,
Instance of T.
out Plane
plane,
Plane of curve or Plane.None if curve is not planar.
out double
deviation
Maximum deviation from plane.
)
inherited fromCurveAssistant<T>

LengthAtParameter

#
public override bool LengthAtParameter(
instance,
parameter,
out double
length
)

ParameterAtLength

#
public override bool ParameterAtLength(
instance,
length,
out double
parameter
)

SetDomain

Assign a new parameter domain to the curve.
public virtual object SetDomain(
T
instance,
Instance.
domain
New domain to assign.
)
inherited fromCurveAssistant<T>
Curve with new domain.

Split

Split a curve into two parts.
public virtual void Split(
T
instance,
Instance.
parameter,
Splitting parameter.
out object
below,
Part from start of curve to parameter.
out object
above
Part from parameter to end of curve.
)
inherited fromCurveAssistant<T>

Trim

Extract a subcurve from an instance of T.
public virtual object Trim(
T
instance,
Instance of T.
domain
Domain of subcurve.
)
inherited fromCurveAssistant<T>
Sub curve.