diff --git a/src/ifcwrap/IfcGeomWrapper.i b/src/ifcwrap/IfcGeomWrapper.i index 007e9d6223..a18144baf3 100644 --- a/src/ifcwrap/IfcGeomWrapper.i +++ b/src/ifcwrap/IfcGeomWrapper.i @@ -17,7 +17,9 @@ * * ********************************************************************************/ -%rename("settings") IteratorSettings; +%rename("buffer") stream_or_filename; + +%ignore stream_or_filename::stream; // This is only used for RGB colours, hence the size of 3 %typemap(out) const double* { @@ -63,6 +65,10 @@ %include "../ifcgeom/IfcGeomRepresentation.h" %include "../ifcgeom_schema_agnostic/IfcGeomIterator.h" +%include "../serializers/GeometrySerializer.h" +%include "../serializers/SvgSerializer.h" +%include "../serializers/WavefrontObjSerializer.h" + // A Template instantantation should be defined before it is used as a base class. // But frankly I don't care as most methods are subtlely different anyway. %include "../ifcgeom/IfcGeomTree.h" @@ -175,7 +181,7 @@ struct ShapeRTTI : public boost::static_visitor def d(): import numbers for x in dir(self): - if x.isupper() and x not in {"NUM_SETTINGS", "USE_PYTHON_OPENCASCADE"}: + if x.isupper() and x not in {"NUM_SETTINGS", "USE_PYTHON_OPENCASCADE", "DEFAULT_PRECISION"}: v = getattr(self, x) if isinstance(v, numbers.Integral): yield x diff --git a/src/ifcwrap/IfcPython.i b/src/ifcwrap/IfcPython.i index bdbfbc313f..510e6b276d 100644 --- a/src/ifcwrap/IfcPython.i +++ b/src/ifcwrap/IfcPython.i @@ -77,6 +77,9 @@ #include "../ifcgeom_schema_agnostic/IfcGeomIterator.h" #include "../ifcgeom_schema_agnostic/Serialization.h" #include "../ifcgeom/IfcGeomTree.h" + + #include "../serializers/SvgSerializer.h" + #include "../serializers/WavefrontObjSerializer.h" #ifdef HAS_SCHEMA_2x3 #include "../ifcparse/Ifc2x3.h" @@ -124,6 +127,9 @@ #include "../ifcgeom_schema_agnostic/IfcGeomIterator.h" #include "../ifcgeom_schema_agnostic/Serialization.h" #include "../ifcgeom/IfcGeomTree.h" + + #include "../serializers/SvgSerializer.h" + #include "../serializers/WavefrontObjSerializer.h" #ifdef HAS_SCHEMA_2x3 #include "../ifcparse/Ifc2x3.h"