AverageNormal (Geometry1D)
Description
Get the average normal of given 1D geometry
Scripting Syntax
Geometry1D.AverageNormal( compIdxArray, compNor )
Parameters
|
Parameter |
Type |
Description |
|
compIdxArray |
An array of indices of 1D geometry Possible Values: • 0 <= compIdxArray(i) < Number of 1D geometry: Each index in the array must be valid |
|
|
compNor [in/out] |
Upon return, contains the average normal of the given 1D geometry |
Return Value
Boolean. True if the average normal is valid; otherwise False
Examples
VBScript Example
'Create a cube CreatePrim "Cube", "MeshSurface" set oSelList = GetValue("SelectionList") set oItem = oSelList(0) set oGeometry = oItem.obj oNb1D = oGeometry.Nb1D set o1DGeometry = oGeometry.Geometry1D set oNor = XSIMath.CreateVector3() ' Construct an array containing the indices 0,1,2,3 dim oIndicesArray oIndicesArray = Array( 0, 1, 2, 3 ) if o1DGeometry.AverageNormal( oIndicesArray, oNor ) then LogMessage "Average normal of Component (0, 1, 2, 3) : " & oNor.x & " | " & oNor.y & " | " & oNor.z end if
See Also
Autodesk Softimage v7.5