cadmium icon indicating copy to clipboard operation
cadmium copied to clipboard

strange Standard_ConstructionError

Open hmeyer opened this issue 13 years ago • 2 comments

please look at this:

import sys
sys.path.append('./src')
from cadmium import *
u = Box(62,62,100, center=True) + Sphere(19).translate(-31,-31,-31)```

when run with current HEAD, I get:
```Traceback (most recent call last):
  File "examples/fail.py", line 5, in <module>
    u = Box(62,62,100, center=True) + Sphere(19).translate(-31,-31,-31)
  File "./src/cadmium/solid.py", line 50, in __add__
    union = BRepAlgoAPI_Fuse(self.shape, other.shape).Shape()
  File "/usr/lib/pymodules/python2.7/OCC/BRepAlgoAPI.py", line 222, in __init__
    _BRepAlgoAPI.BRepAlgoAPI_Fuse_swiginit(self,_BRepAlgoAPI.new_BRepAlgoAPI_Fuse(*args))
RuntimeError: Standard_ConstructionError```

hmeyer avatar Dec 28 '11 23:12 hmeyer

The error happens inside OCC. I do see such errors occasionally, but don't know the cause.

jay3sh avatar Dec 30 '11 02:12 jay3sh

Could you please help me creating a minimal example which reproduces this error? Than I try to escalate to python-occ. Am 30.12.2011 03:25 schrieb "Jayesh Salvi" < [email protected]

:

The error happens inside OCC. I do see such errors occasionally, but don't know the cause.


Reply to this email directly or view it on GitHub: https://github.com/jayesh3/cadmium/issues/4#issuecomment-3309083

hmeyer avatar Dec 30 '11 09:12 hmeyer