Unityな日々(Unity Geek)

Unityで可視化アプリを開発するための試行錯誤の覚書

Meshの三角ポリゴンを反転する

http://wiki.unity3d.com/index.php?title=ReverseNormals
http://forum.unity3d.com/threads/101018-How-do-I-get-the-normal-of-each-triangle-in-mesh

インポートした3DモデルのMeshを次のスクリプトで調べてみた。

print ("normals="+normals.Length+"  triangles="+triangles.Length+"  vertices="+verts.Length+" vertexCount="+mesh.vertexCount);

次のような出力が得られた

normals=1620 triangles=5691 vertices=1620 vertexCount=1620

これから推察するに、
vertices.Length と、vertexCountは同じようだ。