Seperate map() and map_impl() for automatic taxonomy item <> ifc instance mapping

This commit is contained in:
Thomas Krijnen
2019-08-28 09:24:00 +02:00
parent 640b08159f
commit 3bfe3b9ab5
4 changed files with 23 additions and 23 deletions
@@ -824,16 +824,16 @@ bool OpenCascadeKernel::convert_impl(const taxonomy::extrusion* extrusion, ifcop
return true;
}
bool OpenCascadeKernel::convert_impl(const taxonomy::shell *extrusion, ifcopenshell::geometry::ConversionResults& results) {
bool OpenCascadeKernel::convert_impl(const taxonomy::shell *shell, ifcopenshell::geometry::ConversionResults& results) {
TopoDS_Shape shape;
if (!convert(extrusion, shape)) {
if (!convert(shell, shape)) {
return false;
}
results.emplace_back(ConversionResult(
extrusion->instance->data().id(),
extrusion->matrix,
shell->instance->data().id(),
shell->matrix,
new OpenCascadeShape(shape),
extrusion->surface_style
shell->surface_style
));
return true;
}