MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / copyUVs

Method copyUVs

Utils/IndexedFaceMesh.cpp:228–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void IndexedFaceMesh::copyUVs(const UVIndices& uvIndices, const UVs& uvs)
229{
230 m_uvs.clear();
231 m_uvs.resize(uvs.size());
232
233 for (unsigned int i = 0; i < uvs.size(); i++)
234 {
235 m_uvs[i] = uvs[i];
236 }
237
238 m_uvIndices.clear();
239 m_uvIndices.resize(uvIndices.size());
240
241 for (unsigned int i = 0; i < uvIndices.size(); i++)
242 {
243 m_uvIndices[i] = uvIndices[i];
244 }
245}
246
247unsigned int IndexedFaceMesh::getVerticesPerFace() const
248{

Callers 2

initMeshMethod · 0.80
initMeshMethod · 0.80

Calls 3

clearMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected