Normal (Geometry1D)

Description

Get the normal at a given 1D geometry

Scripting Syntax

Geometry1D.Normal( compIdx, compNor )

Parameters

Parameter

Type

Description

compIdx

Integer

Index of the component

Possible Values:

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

compNor [in/out]

SIVector3

Upon return, contains the normal at the (compIdx)th 1D geometry

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

See Also

Geometry1D.AverageNormal

Geometry_V1.Geometry1D

Geometry_V1.Nb1D

SIVector3



SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index