TriangleMesh::nodeCount() return value

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello.
Just spotted, that the method TriangleMesh::nodeCount() returns the count of the vertices of the triangles, not of the points, as in contrast returned from PolygonMesh::nodeCount(). Is this slight inconsistency intentional? "Points" I mean the values of the vector of unique coordinates, returned by TriangleMesh::nodeCoordinates() / PolygonMesh::nodeCoordinates(), "triangle vertices" -- the values of the vector of references to the points, returned by TriangleMesh::nodeIndices() / PolygonMesh::triangleNodeIndices(). "Nodes" I hope are rather "points", not the "vertices"? In former case there is no other means to find out the amount of the points, than calculate the size of TriangleMesh::nodeCoordinates() (efficiency issue), when the amount of the vertices is just as trice as the amount of triangles TriangleMesh::triangleCount() (kind of duplication). Both meshes in my case are identical and returned from MeshBody::displayMesh() and MeshBody::mesh().