mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Implementation of the method for simplification of the result of Boolean Operation on the API level. The method BRepAlgoAPI_BuilderAlgo::SimplifyResult has been added, so the derived classes such as BooleanOpeation and Splitter can also use this method. The result shape simplification should be called after the operation is done. The simplification is performed by the means of ShapeUpgrade_UnifySameDomain algorithm. Draw command "bsimplify" has been added to control the simplification options. Documentation for new functionality and draw commands controlling the options of Boolean operations. Test cases for the new functionality. Side-effect change: The algorithms in Boolean component have been changed to use the BRepTools_History as a History tool. Now it became possible to disable the collection of shapes modifications during Boolean Operations, which may be useful for performance sake (in draw the option is controlled by *setfillhistory* command). Draw command "unifysamedom" has been changed to accept the angular tolerance in degrees instead of radians.
34 lines
587 B
Plaintext
34 lines
587 B
Plaintext
# Section between shell and a plane
|
|
|
|
boptions -default
|
|
|
|
plane p 0 0 0 0 0 1
|
|
mkface f1 p -10 10 -10 10
|
|
mkface f2 p 10 30 -10 10
|
|
mkface f3 p 30 50 -10 10
|
|
sewing shell f1 f2 f3
|
|
|
|
plane p 0 5 0 0 1 0
|
|
mkface f p -100 100 -100 100
|
|
|
|
bclearobjects
|
|
bcleartools
|
|
baddobjects shell
|
|
baddtools f
|
|
bfillds
|
|
|
|
# build not simplified result
|
|
bapibop sec 4
|
|
checkshape sec
|
|
checknbshapes sec -vertex 4 -edge 3
|
|
checkprops sec -l 60
|
|
|
|
# set option to simplify result
|
|
bsimplify -e 1
|
|
bapibop sec_simple 4
|
|
checkshape sec_simple
|
|
checknbshapes sec_simple -vertex 2 -edge 1
|
|
checkprops sec_simple -l 60
|
|
|
|
boptions -default
|