Returns the size of a collection in a particular direction. For a NurbsCurve use siUDirection.
Int32 ControlPointCollection.Dimension( siNurbsDirection in_newVal ); |
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 |