指定された 2D ジオメトリの法線を取得します。
oBoolean = Geometry2D.Normal( compIdx, compNor ); |
Boolean. 法線が有効の場合は True、無効の場合は false
| パラメータ | タイプ | 説明 | ||||
|---|---|---|---|---|---|---|
| compIdx | Integer |
コンポーネントのインデックス
|
||||
| compNor | SIVector3 | 戻されるときに、(compIdx)番目の 2D コンポーネントの法線が含まれます。 |
'Create a cube
CreatePrim "Cube", "MeshSurface"
set oSelList = GetValue("SelectionList")
set oItem = oSelList(0)
set oGeometry = oItem.obj
oNb2D = oGeometry.Nb2D
set o2DComponent = oGeometry.Geometry2D
set oNor = XSIMath.CreateVector3()
' Loop on all the 2D Component
for i = 0 to oNb2D - 1
if o2DComponent.Normal( i, oNor ) then
LogMessage "Component [" & i & "] normal : " & oNor.x & " | " & oNor.y & " | " & oNor.z
end if
next |