X3DObject.AddNurbsSurfaceMesh

Description

This method is obsolete and has been replaced by X3DObject.AddNurbsSurfaceMesh2.

Creates an empty NurbsSurfaceMesh object and parents it under this object.

Scripting Syntax

oReturn = X3DObject.AddNurbsSurfaceMesh( Count, ControlPoints, [UKnots], [VKnots], [UClosed], [VClosed], [UDegree], [VDegree], [UParam], [VParam], [NurbsFormat], [Name] );

Return Value

X3DObject

Parameters

Parameter Type Description
Count 2D Array Number of control vertex, uknots, vknots per surface
ControlPoints 1D or 3D Array The control points used for creating the nurbs surface. The control points can be stored in a 1-dimensional array or in a 3-dimensional matrix (UxVx4) of x,y,z,w values. The 1-dimensional array should contain the number of points in U and V at the beginning followed by a sequence of x,y,z,w values (e.g. {U,V,Xo,Yo,Zo,...X(uv-1),Y(uv-1),Z(uv-1),W(uv-1)}).
UKnots Array A vector of knot values in the U direction.

Default Value: Knots derived from control points.

VKnots Array A vector of knot values in the V direction.

Default Value: Knots derived from control points.

UClosed Array of Booleans Specifies whether the nurbs surface is closed or not in U direction.

Default Value: False

VClosed Array of Booleans Specifies whether the nurbs surface is closed or not in V direction.

Default Value: False

UDegree Array of Longs Degree of the nurbs surface in U direction.

Default Value: 3

VDegree Array of Longs Degree of the nurbs surface in V direction.

Default Value: 3

UParam Array of siKnotParameterization The parameterization factor of the nurbs surface in U direction.

Default Value: siNonUniformParameterization

VParam Array of siKnotParameterization The parameterization factor of the nurbs surface in V direction.

Default Value: siNonUniformParameterization

NurbsFormat siNurbsFormat Specifies how the data is formatted.

Default Value: siSINurbs

Name String Name of object

Examples

VBScript Example

NewScene , false
set root = Application.ActiveProject.ActiveScene.Root
set ns = root.AddNurbsSurfaceMesh()

See Also

NurbsSurface