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

Method getMeshPrimitiveCount

COLLADAFramework/src/COLLADAFWMesh.cpp:152–163  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

150
151 //---------------------------------------------------------------
152 size_t Mesh::getMeshPrimitiveCount( MeshPrimitive::PrimitiveType primitiveType )
153 {
154 size_t primitiveCount = 0;
155 for ( size_t i = 0, count = mMeshPrimitives.getCount(); i < count; ++i)
156 {
157 MeshPrimitive* primitive = mMeshPrimitives[i];
158
159 if ( primitive && ( primitive->getPrimitiveType() == primitiveType ) )
160 primitiveCount++;
161 }
162 return primitiveCount;
163 }
164
165 //----------------------------------
166 bool Mesh::hasNormals( )const

Callers

nothing calls this directly

Calls 2

getPrimitiveTypeMethod · 0.80
getCountMethod · 0.45

Tested by

no test coverage detected