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

Method convert_impl

src/ifcgeom/kernels/opencascade/extrusion.cpp:74–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74bool OpenCascadeKernel::convert_impl(const taxonomy::extrusion::ptr extrusion, IfcGeom::ConversionResults& results) {
75 return handle_occt_exception([&]() -> bool {
76
77 TopoDS_Shape shape;
78 if (!convert(extrusion, shape)) {
79 return false;
80 }
81
82 results.emplace_back(ConversionResult(
83 extrusion->instance->as<IfcUtil::IfcBaseEntity>()->id(),
84 extrusion->matrix,
85 new OpenCascadeShape(shape),
86 extrusion->surface_style
87 ));
88 return true;
89
90 });
91}

Callers

nothing calls this directly

Calls 4

handle_occt_exceptionFunction · 0.85
convertFunction · 0.85
ConversionResultFunction · 0.85
idMethod · 0.45

Tested by

no test coverage detected