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

Method importMesh

dae2ma/src/DAE2MAGeometryImporter.cpp:330–344  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

328
329 // --------------------------------------------
330 bool GeometryImporter::importMesh ( COLLADAFW::Mesh* mesh )
331 {
332 // Get the unique framework mesh id
333 const COLLADAFW::UniqueId& geometryId = mesh->getUniqueId ();
334
335 // Get the transform node(s) of the current mesh.
336 VisualSceneImporter* visualSceneImporter = getDocumentImporter ()->getVisualSceneImporter ();
337 const UniqueIdVec* transformNodeIds = visualSceneImporter->findGeometryTransformIds ( geometryId );
338 if ( transformNodeIds == 0 ) return false;
339
340 // Make the mesh instances and import the mesh data.
341 bool meshImported = importMesh ( mesh, transformNodeIds );
342
343 return meshImported;
344 }
345
346 // --------------------------------------------
347 bool GeometryImporter::importMesh (

Callers

nothing calls this directly

Calls 15

parentShapeFunction · 0.85
getUniqueIdMethod · 0.80
getNodePathMethod · 0.80
setIsInitialInstanceMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
getNameMethod · 0.45
getFileMethod · 0.45

Tested by

no test coverage detected