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

Function SetUnits

code/AssetLib/IFC/IFCLoader.cpp:354–364  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

352
353// ------------------------------------------------------------------------------------------------
354void SetUnits(ConversionData &conv) {
355 if (conv.proj.UnitsInContext == nullptr) {
356 IFCImporter::LogError("Skipping conversion data, nullptr.");
357 return;
358 }
359
360 // see if we can determine the coordinate space used to express.
361 for (size_t i = 0; i < conv.proj.UnitsInContext->Units.size(); ++i) {
362 ConvertUnit(*conv.proj.UnitsInContext->Units[i], conv);
363 }
364}
365
366// ------------------------------------------------------------------------------------------------
367void SetCoordinateSpace(ConversionData &conv) {

Callers 1

InternReadFileMethod · 0.85

Calls 2

ConvertUnitFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected