Hi,
Not sure if this is a bug or my incorrect usage but the following snippet:
from OCC.TopoDS import TopoDS_Compound
from OCC.BRep import BRep_Builder
c = TopoDS_Compound()
bb = BRep_Builder()
was giving the following exception:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-215db27b1dce> in <module>()
4 from OCC.BRep import BRep_Builder
5
----> 6 bb = BRep_Builder()
7 bb.MakeCompound(c)
8 bb.Add()
/usr/local/lib/python2.7/site-packages/OCC/BRep.py in __init__(self, *args, **kwargs)
126 class BRep_Builder(OCC.TopoDS.TopoDS_Builder):
127 thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
--> 128 def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
129 __repr__ = _swig_repr
130 def MakeFace(self, *args):
AttributeError: No constructor defined
I "fixed" it by removing the line:
%nodefaultctor BRep_Builder;
from BRep.i but I'm not sure if this is the correct thing to do.
Thanks,
Fergus
Hi,
Not sure if this is a bug or my incorrect usage but the following snippet:
was giving the following exception:
I "fixed" it by removing the line:
from
BRep.ibut I'm not sure if this is the correct thing to do.Thanks,
Fergus