Navigation: Scripting Reference Manual > Functions & Subroutines > AddSplineSurf

 

AddSplineSurf

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds a Spline surface to the associated FRED document.

 

Syntax

n = AddSplineSurf ( entity, degU, degV, breaksU, breaksV, coefs )

 

Parameters

n (Long)

Node number of the newly added surface.

 

entity As T_ENTITY

Holds the basic entity data for the new surface.

 

degU As Long

The polynomial degree in the U parameter.

 

degV As Long

The polynomial degree in the V parameter.

 

breaksU() As Double

Array containing U Parameter breakpoints in ascending order.

 

breaksV() As Double

Array containing V Parameter breakpoints in ascending order.

 

coefs() As Double

Array of vector patch coefficients.

 

Remarks

This function adds a Spline surface to the associated FRED document.  If there is a problem, the function sets an error, returns -1, and does not add the surface to the document.

 

The coefs array is a 5 dimensional array dimensioned as follows:

 

Dim coefs(2,degU,degV,UbreakCount-1,VbreakCount-1) As Double

 

 

See Also

T_ENTITY

GetSplineSurf

SetSplineSurf

Examples

Surfaces

 

 

 

 

 

Copyright © Photon Engineering, LLC