expose 2 serializers in python

This commit is contained in:
Thomas Krijnen
2021-07-11 15:03:21 +02:00
parent c949211e1b
commit 985f4665d1
2 changed files with 14 additions and 2 deletions
+8 -2
View File
@@ -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<PyObject*>
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
+6
View File
@@ -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"