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

Method convert_impl

src/ifcgeom/AbstractKernel.cpp:70–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool ifcopenshell::geometry::kernels::AbstractKernel::convert_impl(const taxonomy::collection::ptr collection, IfcGeom::ConversionResults& r) {
71 auto s = r.size();
72 for (auto& c : collection->children) {
73 if (!convert(c, r) && !partial_success_is_success) {
74 return false;
75 }
76 }
77 for (auto i = s; i < r.size(); ++i) {
78 if (collection->matrix) {
79 r[i].prepend(collection->matrix);
80 }
81 if (!r[i].hasStyle() && collection->surface_style) {
82 r[i].setStyle(collection->surface_style);
83 }
84 }
85 return r.size() > s;
86}
87
88bool ifcopenshell::geometry::kernels::AbstractKernel::convert_impl(const taxonomy::function_item::ptr item, IfcGeom::ConversionResults& cs) {
89 function_item_evaluator evaluator(settings(),item);

Callers 2

dispatchMethod · 0.45
dispatchMethod · 0.45

Calls 5

convertFunction · 0.85
prependMethod · 0.80
settingsClass · 0.50
sizeMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected