MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / getFaceCount

Method getFaceCount

COLLADAFramework/src/COLLADAFWMesh.cpp:112–123  ·  view source on GitHub ↗

----------------------------------

Source from the content-addressed store, hash-verified

110
111 //----------------------------------
112 size_t Mesh::getFaceCount( MeshPrimitive::PrimitiveType primitiveType )
113 {
114 size_t faceCount = 0;
115 for ( size_t i = 0, count = mMeshPrimitives.getCount(); i < count; ++i)
116 {
117 MeshPrimitive* primitive = mMeshPrimitives[i];
118
119 if ( primitive && ( primitive->getPrimitiveType() == primitiveType ) )
120 faceCount += primitive->getFaceCount();
121 }
122 return faceCount;
123 }
124
125
126 //---------------------------------------------------------------

Callers 5

getPrimitiveCountMethod · 0.45
getFacesCountMethod · 0.45
_writeGeometry_lib3dsMethod · 0.45
writeObjectGroupsMethod · 0.45

Calls 2

getPrimitiveTypeMethod · 0.80
getCountMethod · 0.45

Tested by

no test coverage detected