Navigation: Geometry > Curves > Spline

 

Spline

 

Contact Us: fredsupport@photonengr.com

 

 

 

Description


A spline is a piecewise, parametric curve defined by polynomial segments.  Please see a full definition here.

 

 

Navigation


A spline curve can be generated in the following ways:

Create a new curve, then select "Spline (polynomial segments)" from the type drop-down list.

 

 

Controls


Control

Inputs / Description

Defaults

Logical Parent

Name of Custom Element containing this curve.

Selected custom element at the time of curve creation.

Name

Name of the curve.

Curve n

Description

Description of the curve.

 

Type

Curve type.  Select "Spline (polynomial segments)" from the  drop-down list.

Circular Arc

 Spline Curve Options

Degree

Polynomial degree of spline curve.  Each segment of the spline will have Ndegree+1 coefficients.

1

Breakpoints

The breakpoints define the number of segments in the curve (Nbreakpoints-1) and the range of the parametric variable for each segment.  For example, a breakpoint list of [0,2,3] defines two segments and the parametric variable ranges from 0 to 2 over the first segment and 0 to 1 over the second segment.

0,1

Segment(n)

The columns X, Y and Z define the parametric polynomial coefficients having the form, a + bt + ct2 + dt3 + ...

(0,1) (0,0) (0,0)

 

OK

Accept settings and close the dialog box.

 

Cancel

Discard settings and close the dialog box.

 

Apply

Apply settings and keep the dialog box open.

 

Help

Access curve Help.

 

 

 

Application Notes


Example: Simple spline curve

The task is to produce X and Y components of the position vector P such that they correspond to the desired shape. The X-segment is represented by x(t) = t - t2 + t3 - 2t4 and the Y-segment is given by  y(t) = t + 2t2 -2t3 - t4.  The dialog box shown below creates a 4th degree (5th order) spline with breakpoints at 0 and 1 with position vectors (0,1,-1,1,-2) for the X-segment and (0,1,2,-2,-1) for the Y-segment.  Note that x(t=0) = 0, x(t=1) = -1 and y(t=0) = 0, y(t=1) = 0. The curve is also shown below.

 

 

 

 

Example: Closed spline curve

This example creates a closed spline curve, which corresponds to x(t=0) = x(t=1) = y(t=0) = y(t=1) = 0.  The X-segment is represented by x(t) = t - 2t2 - t3 + t4+ t5. The Y-segment is given by  y(t) = t + 3t2 -2t3 - t4 - t5.  The dialog box shown below creates a 5th degree (6th order) spline with breakpoints at 0 and 1 with position vectors (0,1,-2,-1,1,1) for the X-segment and (0,1,3,-2,-1,-1) for the Y-segment.

 

 

 

 

 

Related Topics


Introduction to Curves 

 

 

 

 

 

Copyright © Photon Engineering, LLC