Interface IBoundedCurve
A curve with a start and an end. Examples of bounded curves include polylines and bezier curves.
Namespace: Elements.Geometry.Interfaces
Assembly: Hypar.Elements.dll
Syntax
public interface IBoundedCurveProperties
Domain
The domain of the curve.
Declaration
Domain1d Domain { get; }Property Value
| Type | Description | 
|---|---|
| Domain1d | 
End
The end of the curve.
Declaration
Vector3 End { get; }Property Value
| Type | Description | 
|---|---|
| Vector3 | 
Start
The start of the curve.
Declaration
Vector3 Start { get; }Property Value
| Type | Description | 
|---|---|
| Vector3 | 
Methods
ArcLength(Double, Double)
Calculate the length of the curve between two parameters.
Declaration
double ArcLength(double start, double end)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | start | |
| System.Double | end | 
Returns
| Type | Description | 
|---|---|
| System.Double | 
Bounds()
Get the bounding box of this curve.
Declaration
BBox3 Bounds()Returns
| Type | Description | 
|---|---|
| BBox3 | 
Frames(Double, Double, Double)
Get a collection of Transforms which represent frames along this curve.
Declaration
Transform[] Frames(double startSetbackDistance = 0, double endSetbackDistance = 0, double additionalRotation = 0)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | startSetbackDistance | The offset from the start of the ICurve. | 
| System.Double | endSetbackDistance | The offset from the end of the ICurve. | 
| System.Double | additionalRotation | An additional rotation of the frame at each point. | 
Returns
| Type | Description | 
|---|---|
| Transform[] | A collection of Transforms. | 
GetSubdivisionParameters(Double, Double)
Get parameters to be used to find points along the curve for visualization.
Declaration
double[] GetSubdivisionParameters(double startSetbackDistance = 0, double endSetbackDistance = 0)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | startSetbackDistance | An optional setback from the start of the curve. | 
| System.Double | endSetbackDistance | An optional setback from the end of the curve. | 
Returns
| Type | Description | 
|---|---|
| System.Double[] | A collection of parameter values. | 
Length()
Calculate the length of the curve.
Declaration
double Length()Returns
| Type | Description | 
|---|---|
| System.Double | 
Mid()
The point at the middle of the curve's parameter space.
Declaration
Vector3 Mid()Returns
| Type | Description | 
|---|---|
| Vector3 | 
PointAtNormalized(Double)
Get a point along the curve at parameter u.
Declaration
Vector3 PointAtNormalized(double u)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | u | A parameter along the curve between 0.0 and 1.0. | 
Returns
| Type | Description | 
|---|---|
| Vector3 | A point along the curve at parameter u. | 
TransformAtNormalized(Double)
Get a transform whose XY plane is perpendicular to the curve, and whose positive Z axis points along the curve.
Declaration
Transform TransformAtNormalized(double u)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | u | The parameter along the curve between 0.0 and 1.0. | 
Returns
| Type | Description | 
|---|---|
| Transform | A transform. |