pythonocc-utils icon indicating copy to clipboard operation
pythonocc-utils copied to clipboard

Runtime error in edge.py

Open bimworld opened this issue 4 years ago • 0 comments

I get a runtime error calling the is_line function in Utils' edge.py

b = BRepPrimAPI_MakeBox(10, 20, 30).Shape()
t = Topo(b)
ed = next(t.edges())
my_e = Edge(ed)
print(my_e.is_line())

return self.adaptor.NbKnots() RuntimeError: Standard_NoSuchObject GeomAdaptor_Curve::NbKnots wrapper details:

  • symname: Adaptor3d_Curve_NbKnots
  • wrapname: _wrap_Adaptor3d_Curve_NbKnots
  • fulldecl: Standard_Integer Adaptor3d_Curve::NbKnots()

bimworld avatar Feb 23 '21 08:02 bimworld