Navigation: Scripting Reference Manual > Functions & Subroutines > GetNURBCurve

 

GetNURBCurve

 

Contact Us: fredsupport@photonengr.com

 

Description

Retrieves the data for a specified NURB Curve.

 

Syntax

GetNURBCurve n, entity, numTerms, order, points, knots

 

Parameters

n As Long

Node number of the NURB curve.

 

entity As T_ENTITY

The generic entity data for the NURB curve.

 

numTerms As Long

The number of control points in the curve.

 

order As Long

The polynomial order of the NURB basis functions. Note that NURB order = degree +1.

 

points() As Double

Array containing control points and corresponding weights.

 

knots() As Double

Array containing NURB basis function knot vector elements in ascending order.

 

Remarks

This subroutine retrieves the data for the specified NURB curve.  If there is a problem, the subroutine posts an error and returns without modifying any of the parameters.

 

The number of elements in the points array must be a multiple of four.  Each group of four values is ( X, Y, Z, W ) where X, Y, Z is a control point position, and W is the weight associated with the control point.

 

The order of the NURB curve is given by order = degree + 1. For example, an order 3 NURB is quadratic and and order 4 NURB is cubic.

 

See Also

T_ENTITY

AddNURBCurve

SetNURBCurve

Examples

Curves

 

 

 

 

 

Copyright © Photon Engineering, LLC