Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

2b461e5d e730 ef0f f401 5f70f6dc662e

haplokuon edited this page May 6, 2023 · 1 revision

Spline(IEnumerable<Vector3>, IEnumerable<Double>, IEnumerable<Double>, Int16, Boolean) Constructor

netDxf 3.0.0 Library

Initializes a new instance of the Spline class.

Definition

Namespace: netDxf.Entities
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public Spline(
	IEnumerable<Vector3> controlPoints,
	IEnumerable<double> weigths,
	IEnumerable<double> knots,
	short degree,
	bool closedPeriodic
)

VB

Public Sub New ( 
	controlPoints As IEnumerable(Of Vector3),
	weigths As IEnumerable(Of Double),
	knots As IEnumerable(Of Double),
	degree As Short,
	closedPeriodic As Boolean
)

C++

public:
Spline(
	IEnumerable<Vector3>^ controlPoints, 
	IEnumerable<double>^ weigths, 
	IEnumerable<double>^ knots, 
	short degree, 
	bool closedPeriodic
)

F#

new : 
        controlPoints : IEnumerable<Vector3> * 
        weigths : IEnumerable<float> * 
        knots : IEnumerable<float> * 
        degree : int16 * 
        closedPeriodic : bool -> Spline

Parameters

  IEnumerable(Vector3)
Spline control points.
  IEnumerable(Double)
Spline control weights. If null the weights vector will be automatically initialized with 1.0.
  IEnumerable(Double)
Spline knot vector.
  Int16
Degree of the spline curve. Valid values are 1 (linear), degree 2 (quadratic), degree 3 (cubic), and so on up to degree 10.
  Boolean
Sets if the spline as periodic closed (default false).

See Also

Reference

Spline Class
Spline Overload
netDxf.Entities Namespace

Clone this wiki locally