ControlPointCollection.Dimension operator

Description

Returns the size of a collection in a particular direction. For a NurbsCurve use siUDirection.

Scripting Syntax

oInteger = ControlPointCollection.Dimension( Direction );

Return Value

Integer

Parameters

Parameter Type Description
Direction siNurbsDirection Direction of dimension required

Examples

VBScript Example

set oRoot = Application.ActiveProject.ActiveScene.Root
set oGrid = oRoot.AddGeometry( "Grid","NurbsSurface")
cUControlPoints = oGrid.ActivePrimitive.Geometry.Surfaces(0).ControlPoints.Dimension( siUDirection )
cVControlPoints = oGrid.ActivePrimitive.Geometry.Surfaces(0).ControlPoints.Dimension( siVDirection )
LogMessage "grid has UV dimensions of " & cUControlPoints & "x" & cVControlPoints