TrianglePoint.Index

TrianglePoint.Index

説明

ジオメトリ内のこのトライアングルポイントのインデックスを表すIntegerを戻します。

C#構文

// get accessor

Int32 rtn = TrianglePoint.Index;

VBScript の例

set root = application.activeproject.activescene.root

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

set geometry = obj.activeprimitive.geometry

set triangle = geometry.Triangles(0)

logmessage triangle.name & "'s index = " & triangle.index

for each p in triangle.Points

	 logmessage "p.index: " & p.index

next

関連項目

TriangleCollection TrianglePoint TrianglePointCollection Geometry