Did you try to cast the compound to a TopoDS-Solid? Thomas - sent from my Android phone
Le 8 déc. 2011, 10:07 AM, "Jayesh Salvi" <jayeshsa...@gmail.com> a écrit : After more investigation of why NotDone is thrown, I have found some info. The Fuse operation has ErrorStatus() function on it. I found that it returns the error code 110. Then I looked into OCC code to find out what 110 stands for. I think these two locations in code can throw that error [1<https://github.com/tpaviot/oce/blob/master/src/BRepAlgoAPI/BRepAlgoAPI_BooleanOperation.cxx#L315>] and [2<https://github.com/tpaviot/oce/blob/master/src/BRepAlgoAPI/BRepAlgoAPI_BooleanOperation.cxx#L390> ] The actual error code is 10. Further digging for it, I found that there are two locations that throw that error code. [1<https://github.com/tpaviot/oce/blob/master/src/BOP/BOP_ShellSolid.cxx#L145>] and [2<https://github.com/tpaviot/oce/blob/master/src/BOP/BOP_WireSolid.cxx#L90> ] Both are caused by issues with type of the shape that is passed as arguments. It looks like the code has problem if one shape is of type TopAbs_SHELL and other is TopAbs_SOLID. In our case I tried to find out the ShapeType's of the two shapes we pass. One of them (box created by BRepPrimAPI_MakeBox) is TopAbs_SOLID and the other (that we constructed by hand) is TopAbs_COMPOUND. This confuses me because arg type checking code has no condition that mentions COMPOUND shape type. Any ideas are welcome. -- Jayesh On Thu, Dec 8, 2011 at 12:56 PM, Jayesh Salvi <jayeshsa...@gmail.com> wrote: > > Hi, > > I tried ... _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users