File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 7070 }
7171}
7272
73- %module ifcopenshell_wrapper %{
73+ // Include headers for the typemaps to function. This set of includes,
74+ // can probably be reduced, but for now it's identical to the includes
75+ // of the module definition below.
76+ %{
7477 #include " ../ifcgeom_schema_agnostic/IfcGeomIterator.h"
7578 #include " ../ifcgeom_schema_agnostic/Serialization.h"
7679 #include " ../ifcgeom/IfcGeomTree.h"
97100
98101%include " utils/typemaps_out.i"
99102
103+ %module ifcopenshell_wrapper %{
104+ #include " ../ifcgeom_schema_agnostic/IfcGeomIterator.h"
105+ #include " ../ifcgeom_schema_agnostic/Serialization.h"
106+ #include " ../ifcgeom/IfcGeomTree.h"
107+
108+ #include " ../ifcparse/Ifc2x3.h"
109+ #include " ../ifcparse/Ifc4.h"
110+ #include " ../ifcparse/Ifc4x1.h"
111+ #include " ../ifcparse/Ifc4x2.h"
112+ #include " ../ifcparse/Ifc4x3_rc1.h"
113+ #include " ../ifcparse/IfcBaseClass.h"
114+ #include " ../ifcparse/IfcFile.h"
115+ #include " ../ifcparse/IfcSchema.h"
116+ #include " ../ifcparse/utils.h"
117+
118+ #include < BRepTools_ShapeSet.hxx>
119+ %}
120+
100121%include " IfcGeomWrapper.i"
101122%include " IfcParseWrapper.i"
Original file line number Diff line number Diff line change 2525 }
2626 $1 = python_sequence_as_vector<template_type>($input);
2727 }
28+ %typemap(typecheck,precedence=SWIG_TYPECHECK_INTEGER) std::vector<template_type> {
29+ $1 = check_aggregate_of_type ($input, get_python_type<template_type>()) ? 1 : 0 ;
30+ }
2831
32+ %typemap(typecheck,precedence=SWIG_TYPECHECK_INTEGER) const std::vector<template_type>& {
33+ $1 = check_aggregate_of_type ($input, get_python_type<template_type>()) ? 1 : 0 ;
34+ }
2935 %typemap(arginit) const std::vector<template_type>& {
3036 $1 = new std::vector<template_type>();
3137 }
You can’t perform that action at this time.
0 commit comments