Class HatchBoundaryPath.Spline
Represents a spline edge of a HatchBoundaryPath.
Implements
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class Spline : HatchBoundaryPath.Edge, ICloneable
Constructors
| Improve this Doc View SourceSpline()
Initializes a new instance of the HatchBoundaryPath.Spline class.
Declaration
public Spline()
Spline(EntityObject)
Initializes a new instance of the HatchBoundaryPath.Spline class.
Declaration
public Spline(EntityObject entity)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityObject | entity | EntityObject that represents the edge. |
Fields
| Improve this Doc View SourceControlPoints
Gets or sets the list of control points of the spline.
Declaration
public Vector3[] ControlPoints
Field Value
| Type | Description |
|---|---|
| Vector3[] |
Remarks
The position of the control point is defined by the X and Y coordinates, the Z value represents its weight.
Degree
Gets or sets the degree of the spline
Declaration
public short Degree
Field Value
| Type | Description |
|---|---|
| System.Int16 |
IsPeriodic
Gets or sets if the spline is periodic.
Declaration
public bool IsPeriodic
Field Value
| Type | Description |
|---|---|
| System.Boolean |
IsRational
Gets or sets if the spline is rational.
Declaration
public bool IsRational
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Knots
Gets or sets the list of knots of the spline.
Declaration
public double[] Knots
Field Value
| Type | Description |
|---|---|
| System.Double[] |
Methods
| Improve this Doc View SourceClone()
Clones the actual edge.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A copy of the actual edge. |
Overrides
| Improve this Doc View SourceConvertFrom(EntityObject)
Initializes a new instance of the HatchBoundaryPath.Spline class.
Declaration
public static HatchBoundaryPath.Spline ConvertFrom(EntityObject entity)
Parameters
| Type | Name | Description |
|---|---|---|
| EntityObject | entity | EntityObject that represents the edge. |
Returns
| Type | Description |
|---|---|
| HatchBoundaryPath.Spline |
ConvertTo()
Converts the actual edge to its entity equivalent.
Declaration
public override EntityObject ConvertTo()
Returns
| Type | Description |
|---|---|
| EntityObject | An EntityObject equivalent to the actual edge. |