Archived issue #0027698
Non-destructive principle in BRepPrimAPI_MakePrism algorithm
Description
The algorithm modifies the input shape passed as its argument
Steps to reproduce
1. Open any of tests below:
- bugs/modalg_1/buc60684
- prism/seminf/A1
- bugs/modalg_2/bug341
2. Add "setflags shape locked" row to lock input shape.
3. Run test
4. The exception is raised
- bugs/modalg_1/buc60684
- prism/seminf/A1
- bugs/modalg_2/bug341
2. Add "setflags shape locked" row to lock input shape.
3. Run test
4. The exception is raised
Public activity
2 archived notes
Participants are labeled by their role within this record.
The constructors of the class BRepPrimAPI_Prism have the argument "Copy". By default it is false. If it is made true the problem disappears. So, there is nothing to do in this bug. With Copy=true the algorithm is already non-destructive.
I have checked this modifying the script bugs/modalg_1/buc60684. If we insert there locking flag for the shape and add Copy parameter to the prism command no exception is raised.
So, this bug is to be closed.
I have checked this modifying the script bugs/modalg_1/buc60684. If we insert there locking flag for the shape and add Copy parameter to the prism command no exception is raised.
So, this bug is to be closed.
Dear Commenter 1, please close this bug.
Related records