TType 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.
public bool IsReimplementation { get; }
IsReimplementation

ReimplementationBase

#
Gets the base assistant (if any) this assistant is a re-implementation of.
public ICurveAssistant ReimplementationBase { get; }

Type

#
Gets the type associated with this assistant.
public Type Type { get; }
Type

Methods

BoundingBox

#
Gets the bounding box of a curve.
public virtual BoundingBox BoundingBox(
T
instance
Curve instance.
)
World axis aligned bounding box.

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.
)
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.
)

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.
public abstract Curve ConvertToRhinoCurve(
T
instance
Instance to convert.
)
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.
public virtual double[] DivideByCount(
T
instance,
Instance.
count
Number of segments.
)
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.
public virtual double[] DivideByDistance(
T
instance,
Instance.
distance
Distance between segment start and end-points.
)
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.
public virtual double[] DivideByLength(
T
instance,
Instance.
length
Tier length.
)
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.
)
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.
)
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.
)
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.
public virtual Point3d EvaluatePosition(
T
instance,
Instance of T.
parameter
Curve parameter.
)
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.
)
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.
public virtual object[] Explode(
T
instance
Instance.
)
Array of subcurves.

ExplodeRecursive

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

FindClosestParameter

#
Find the point on the curve closest to a test point.
public virtual double FindClosestParameter(
T
instance,
Instance of T.
point
Test point.
)
Parameter or double.NaN if no parameter could be found.

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.
)

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.
)
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.
)
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.
)
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.
)

FlipDirection

#
Flip the curve.
public virtual object FlipDirection(
T
instance
Instance to flip.
)
Flipped curve.

GetDomain

#
Get the domain of an instance of T.
public virtual Interval GetDomain(
T
instance
Instance of 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.
)

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.
)

GetLength

#
Measure the total length of this curve.
public virtual double GetLength(
T
instance
Instance.
)
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.
)
Span domains.
Explicit

ICurveAssistant.BoundingBox

#
BoundingBox ICurveAssistant.BoundingBox(
instance
)
BoundingBox
Explicit

ICurveAssistant.ConvertToNurbsCurve

#
NurbsCurve ICurveAssistant.ConvertToNurbsCurve(
instance
)
Explicit

ICurveAssistant.ConvertToPolyline

#
Polyline ICurveAssistant.ConvertToPolyline(
instance,
deviation,
angle
)
ConvertToPolyline
Explicit

ICurveAssistant.ConvertToRhinoCurve

#
Curve ICurveAssistant.ConvertToRhinoCurve(
instance
)
Explicit

ICurveAssistant.DivideByCount

#
double[] ICurveAssistant.DivideByCount(
instance,
count
)
DivideByCount
Explicit

ICurveAssistant.DivideByDistance

#
double[] ICurveAssistant.DivideByDistance(
instance,
distance
)
DivideByDistance
Explicit

ICurveAssistant.DivideByLength

#
double[] ICurveAssistant.DivideByLength(
instance,
length
)
DivideByLength
Explicit

ICurveAssistant.EvaluateCurvature

#
Vector3d ICurveAssistant.EvaluateCurvature(
instance,
parameter,
side
)
EvaluateCurvature
Explicit

ICurveAssistant.EvaluateDerivatives

#
Vector3d[] ICurveAssistant.EvaluateDerivatives(
instance,
parameter,
side,
count
)
Explicit

ICurveAssistant.EvaluatePerpendicular

#
Plane ICurveAssistant.EvaluatePerpendicular(
instance,
parameter,
side
)
Explicit

ICurveAssistant.EvaluatePosition

#
Point3d ICurveAssistant.EvaluatePosition(
instance,
parameter
)
EvaluatePosition
Explicit

ICurveAssistant.EvaluateTangent

#
Vector3d ICurveAssistant.EvaluateTangent(
instance,
parameter,
side
)
EvaluateTangent
Explicit

ICurveAssistant.Explode

#
object[] ICurveAssistant.Explode(
instance
)
Explode
Explicit

ICurveAssistant.ExplodeRecursive

#
object[] ICurveAssistant.ExplodeRecursive(
instance
)
ExplodeRecursive
Explicit

ICurveAssistant.Extend

#
Extend
Explicit

ICurveAssistant.FindClosestParameter

#
double ICurveAssistant.FindClosestParameter(
instance,
point
)
Explicit

ICurveAssistant.FindCurvatureExtremes

#
void ICurveAssistant.FindCurvatureExtremes(
instance,
out double
minimum,
out double
maximum
)
Explicit

ICurveAssistant.FindDiscontinuities

#
Discontinuity[] ICurveAssistant.FindDiscontinuities(
instance,
order
)
Explicit

ICurveAssistant.FindFurthestParameter

#
double ICurveAssistant.FindFurthestParameter(
instance,
point
)
Explicit

ICurveAssistant.FindInflections

#
double[] ICurveAssistant.FindInflections(
instance
)
FindInflections
Explicit

ICurveAssistant.FindPositionExtremes

#
void ICurveAssistant.FindPositionExtremes(
instance,
plane,
out double
minimum,
out double
maximum
)
Explicit

ICurveAssistant.FlipDirection

#
object ICurveAssistant.FlipDirection(
instance
)
FlipDirection
Explicit

ICurveAssistant.GetDomain

#
Interval ICurveAssistant.GetDomain(
instance
)
GetDomain
Explicit

ICurveAssistant.GetEndPoints

#
void ICurveAssistant.GetEndPoints(
instance,
out Point3d
start,
out Point3d
end
)
GetEndPoints
Explicit

ICurveAssistant.GetEndTangents

#
void ICurveAssistant.GetEndTangents(
instance,
start,
end
)
GetEndTangents
Explicit

ICurveAssistant.GetLength

#
double ICurveAssistant.GetLength(
instance
)
GetLength
Explicit

ICurveAssistant.GetSpans

#
Interval[] ICurveAssistant.GetSpans(
instance
)
GetSpans
Explicit

ICurveAssistant.IntersectWith

#
double[] ICurveAssistant.IntersectWith(
instance,
plane
)
IntersectWith
Explicit

ICurveAssistant.IsClosed

#
bool ICurveAssistant.IsClosed(
instance
)
IsClosed
Explicit

ICurveAssistant.IsLinear

#
bool ICurveAssistant.IsLinear(
instance,
tolerance
)
IsLinear
Explicit

ICurveAssistant.IsLinear

#
void ICurveAssistant.IsLinear(
instance,
out Line
line,
out double
deviation
)
IsLinear
Explicit

ICurveAssistant.IsPeriodic

#
bool ICurveAssistant.IsPeriodic(
instance
)
IsPeriodic
Explicit

ICurveAssistant.IsPlanar

#
bool ICurveAssistant.IsPlanar(
instance,
tolerance
)
IsPlanar
Explicit

ICurveAssistant.IsPlanar

#
void ICurveAssistant.IsPlanar(
instance,
out Plane
plane,
out double
deviation
)
IsPlanar
Explicit

ICurveAssistant.LengthAtParameter

#
bool ICurveAssistant.LengthAtParameter(
instance,
parameter,
out double
length
)
LengthAtParameter
Explicit

ICurveAssistant.ParameterAtLength

#
bool ICurveAssistant.ParameterAtLength(
instance,
length,
out double
parameter
)
ParameterAtLength
Explicit

ICurveAssistant.SetDomain

#
object ICurveAssistant.SetDomain(
instance,
domain
)
SetDomain
Explicit

ICurveAssistant.Split

#
void ICurveAssistant.Split(
instance,
parameter,
out object
below,
out object
above
)
Split
Explicit

ICurveAssistant.Trim

#
object ICurveAssistant.Trim(
instance,
domain
)
Trim

IntersectWith

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

IsClosed

#
Determine whether the curve is closed.
public virtual bool IsClosed(
T
instance
Instance of T.
)
Boolean value indicating closedness.

IsLinear

#
Determine whether the curve is linear.
public virtual bool IsLinear(
T
instance,
Instance.
tolerance
Maximum allowed linearity deviation.
)
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.
)

IsPeriodic

#
Determine whether the curve is periodic.
public virtual bool IsPeriodic(
T
instance
Instance of 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.
)
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.
)

LengthAtParameter

#
Gets the length from the start of the curve to the given parameter.
public virtual bool LengthAtParameter(
T
instance,
Instance of T.
parameter,
Parameter on curve.
out double
length
Length from start of curve to parameter.
)
Success or failure.

ParameterAtLength

#
Get the parameter of a curve at a given length from the start.
public virtual bool ParameterAtLength(
T
instance,
Instance.
length,
Length along curve to measure.
out double
parameter
Parameter at the given length.
)
True if length measurement was possible.

SetDomain

#
Assign a new parameter domain to the curve.
public virtual object SetDomain(
T
instance,
Instance.
domain
New domain to assign.
)
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.
)

Trim

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