PolygonNode の法線を含む SIVector3 を戻します。
// get accessor Object PolygonNode.get_Normal( Boolean& out_pbValid ); |
set oObject = Application.ActiveProject.ActiveScene.Root.AddGeometry("Cube","MeshSurface") set oPolygonMesh = oObject.ActivePrimitive.Geometry set oPolygonFace = oPolygonMesh.Polygons(0) set oPolygonNode = oPolygonFace.Nodes(0) set oNormal = oPolygonNode.Normal logmessage "Normal: " & " x = " & oNormal.x & " y = " & oNormal.y & " z = " & oNormal.z |