From f687e610b9686d0d7eed51daa15017fb408b8924 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 5 Dec 2023 21:15:06 +0100 Subject: [PATCH] Workaround to create epeck number from python --- src/ifcwrap/IfcGeomWrapper.i | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ifcwrap/IfcGeomWrapper.i b/src/ifcwrap/IfcGeomWrapper.i index 4d3808fec8..099615fa18 100644 --- a/src/ifcwrap/IfcGeomWrapper.i +++ b/src/ifcwrap/IfcGeomWrapper.i @@ -631,6 +631,17 @@ struct ShapeRTTI : public boost::static_visitor %template(OpaqueCoordinate_3) IfcGeom::OpaqueCoordinate<3>; %template(OpaqueCoordinate_4) IfcGeom::OpaqueCoordinate<4>; +%{ + #include "../ifcgeom/kernels/cgal/CgalConversionResult.h" +%} + +%inline %{ + std::shared_ptr create_epeck(int i) { + return std::make_shared(i); + } +%} + + %naturalvar svgfill::polygon_2::boundary; %naturalvar svgfill::polygon_2::inner_boundaries; %naturalvar svgfill::polygon_2::point_inside;