Triangle.PolygonIndex

Triangle.PolygonIndex

説明

このトライアングルを含むポリゴンのインデックスをIntegerとして戻します。

C#構文

// get accessor

Int32 rtn = Triangle.PolygonIndex;

VBScript の例

set root = Application.ActiveProject.ActiveScene.Root

set obj = root.AddGeometry( "Cube", "MeshSurface" )

set geometry = obj.ActivePrimitive.Geometry

Application.LogMessage "Nb Of Polygons: " & geometry.polygons.Count

set triColl = geometry.triangles

Application.LogMessage "Nb Of Triangles: " & triColl.Count

for each tri in triColl

Application.LogMessage "Name: " & tri & ", PolyIdx : " & tri.PolygonIndex

next

関連項目

PolygonFace PolygonFaceCollection PolygonMesh.Polygons Facet FacetCollection Geometry.Facets