pythonocc-utils
pythonocc-utils copied to clipboard
Runtime error in edge.py
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()