MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / convert

Method convert

src/ifcgeom/Converter.cpp:394–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394IfcGeom::ConversionResults ifcopenshell::geometry::Converter::convert(IfcUtil::IfcBaseClass * item)
395{
396 std::clock_t map_start = std::clock();
397 auto geom_item = mapping_->map(item);
398 IfcGeom::ConversionResults results;
399 if (geom_item) {
400 std::clock_t geom_start = std::clock();
401 if (!kernel_->convert(geom_item, results)) {
402 throw std::runtime_error("Failed to convert item");
403 }
404 std::clock_t geom_end = std::clock();
405 total_map_time += (geom_start - map_start) / (double) CLOCKS_PER_SEC;
406 total_geom_time += (geom_end - geom_start) / (double) CLOCKS_PER_SEC;
407 }
408 return results;
409}

Callers 10

__call__Method · 0.45
convert_file_and_testFunction · 0.45
test_runMethod · 0.45
create_curvesMethod · 0.45
station_as_stringFunction · 0.45
create_edgesMethod · 0.45
_executeMethod · 0.45
get_imageMethod · 0.45

Calls 1

mapMethod · 0.45

Tested by 2

convert_file_and_testFunction · 0.36
test_runMethod · 0.36