KnotCollection.GetMultiplicity operator

Description

Returns the multiplicity of a knot give its value

Scripting Syntax

oLong = KnotCollection.GetMultiplicity( KnotValue );

Return Value

Long

Parameters

Parameter Type Description
KnotValue Double The KnotValue of which we want the multiplicity.

Examples

VBScript Example

set oRoot = Application.activeproject.activescene.root
set oSphere = oRoot.AddGeometry( "Sphere", "NurbsSurface" )
set oUKnotCollection = oSphere.ActivePrimitive.Geometry.Surfaces(0).UKnots
aKnotValues = oUKnotCollection.Array
logmessage "The multiplicity of the first knot in the collection is :" & oUKnotCollection.GetMultiplicity(0)