Make sure compound structure is retained as SvgSerializer depends on it

This commit is contained in:
Thomas Krijnen
2025-10-01 15:01:50 +02:00
parent babf95785c
commit d684d47dc8
10 changed files with 32 additions and 5 deletions
@@ -610,6 +610,11 @@ ConversionResultShape * ifcopenshell::geometry::CgalShape::box()
throw std::runtime_error("Not implemented");
}
ConversionResultShape* ifcopenshell::geometry::CgalShape::wrap_in_compound()
{
return new CgalShape(poly(), convex_tag_);
}
std::vector<ConversionResultShape*> ifcopenshell::geometry::CgalShape::vertices()
{
// @todo this is ridiculous
@@ -1001,4 +1006,10 @@ void ifcopenshell::geometry::CgalShapeHalfSpaceDecomposition::map(const std::vec
shape_ = std::move(nw);
}
ConversionResultShape* ifcopenshell::geometry::CgalShapeHalfSpaceDecomposition::wrap_in_compound()
{
throw std::runtime_error("Not implemented");
}
#endif