MCPcopy Create free account
hub / github.com/assimp/assimp / ProcessRepresentationItem

Function ProcessRepresentationItem

code/AssetLib/IFC/IFCGeometry.cpp:866–883  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

864
865// ------------------------------------------------------------------------------------------------
866bool ProcessRepresentationItem(const Schema_2x3::IfcRepresentationItem& item,
867 unsigned int matid,
868 std::set<unsigned int>& mesh_indices,
869 ConversionData& conv) {
870 // determine material
871 unsigned int localmatid = ProcessMaterials(item.GetID(), matid, conv, true);
872
873 if (!TryQueryMeshCache(item,mesh_indices,localmatid,conv)) {
874 if(ProcessGeometricItem(item,localmatid,mesh_indices,conv)) {
875 if(mesh_indices.size()) {
876 PopulateMeshCache(item,mesh_indices,localmatid,conv);
877 }
878 } else {
879 return false;
880 }
881 }
882 return true;
883}
884
885
886} // ! IFC

Callers 2

ProcessMappedItemFunction · 0.85

Calls 6

ProcessMaterialsFunction · 0.85
TryQueryMeshCacheFunction · 0.85
ProcessGeometricItemFunction · 0.85
PopulateMeshCacheFunction · 0.85
GetIDMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected