Normal (Geometry0D)

Description

Get the normal at a given 0D component

Scripting Syntax

Geometry0D.Normal( compIdx, compNor )

Parameters

Parameter

Type

Description

compIdx

Integer

Index of the component

Possible Values:

0 <= compIdx < Number of 0D Component: The compIdx must be valid

compNor [in/out]

SIVector3

Upon return, contains the normal at the (compIdx)th 0D component

Return Value

Boolean. True if the 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
oNb0D = oGeometry.Nb0D
set o0DGeometry = oGeometry.Geometry0D
set oNor = XSIMath.CreateVector3()
' Loop on all the 0D Component
for i = 0 to oNb0D - 1
if o0DGeometry.Normal( i, oNor ) then
LogMessage "Component [" & i & "] normal : " & oNor.x & " | " & oNor.y & " | " & oNor.z 
end if 
next

See Also

Geometry0D.AverageNormal

Geometry0D

Geometry_V1.Nb0D

SIVector3



Autodesk Softimage v7.5