Question about BRepAlgoAPI_Cut

I want to subtract model b from model a, but it fails. Types of models a and b are 'TopoDS_Solid'. Model b is generated by 'BRepPrimAPI_MakeRevol', I save to local and then re-read model b. It works! I don't know how fix it, has anyone encountered a similar problem, can you give some advice? Thanks!

Mikhail Sazonov's picture

It is definitely incorrect behavior if it did not work just after construction, but works after save/read. What method do you use for save/read? If it is BRepTools::Write/Read then it serializes the shape into an ascii file, and loss of precision is possible. You can try using BinTools::Write/Read for lossless saving.

And you are welcome to register the bug in bug tracker, with steps to reproduce the problem.