Returns the size of a collection in a particular direction. For a NurbsCurve use siUDirection.
oInteger = ControlPointCollection.Dimension( Direction ); |
Parameter | Type | Description |
---|---|---|
Direction | siNurbsDirection | Direction of dimension required |
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 |