Navigation: Scripting Reference Manual > Functions & Subroutines > AddPolynomialSurf

 

AddPolynomialSurf

 

Contact Us: fredsupport@photonengr.com

 

Description

Adds a new Polynomial Surface to the associated FRED document.

 

Syntax

n = AddPolynomialSurf ( entity, coefs )

 

Parameters

n (Long)

Node number of the new surface.

 

entity As T_ENTITY

The generic entity data for the new surface.

 

coefs() As Double

The coefficients of the polynomial describing the new Polynomial Surface.

 

 

Remarks

This function adds a new Polynomial Surface to the associated FRED document and returns the identifier for the new surface.  If it fails, an error is posted and the function returns a value of  -1.

 

The implicit equation of the surface is

 

 

This functional form is very general and can be used to represent a surprising variety of surface shapes from planes to tubes to aspheric surfaces to very bizarre surface shapes.

 

See Also

T_ENTITY

GetPolynomialSurf

SetPolynomialSurf

GetPolynomialSurfCoefCount

GetPolynomialSurfCoefIJK

GetPolynomialSurfIthCoef

SetPolynomialSurfCoefIJK

SetPolynomialSurfIthCoef

Examples

Surfaces

 

 

 

 

 

Copyright © Photon Engineering, LLC