MantisBT - Community
View Issue Details
0027064Community[OCCT] OCCT:Modeling Algorithmspublic2016-01-08 01:252020-09-14 22:55
jaydenshui 
nbv 
lowmajor 
assignedopen 
WindowsVC++ 201364 bit
[OCCT] 6.9.1 
[OCCT] 7.6.0* 
0027064: Wrong results for simple boolean operations
Wrong results get by running the following code in Draw Test Harness:

pload ALL
vclear

box b -0.5 -0.5 -0.5 1 1 1

psphere s1 0.5
ttranslate s1 0.5 0 0

psphere s2 0.5
ttranslate s2 0 0.5 0

psphere s3 0.5
ttranslate s3 0 0 0.5

psphere s4 0.5
ttranslate s4 -0.5 0 0

psphere s5 0.5
ttranslate s5 0 -0.5 0

psphere s6 0.5
ttranslate s6 0 0 -0.5

bop b s1
bopcut c1

bop c1 s2
bopcut c2

bop c2 s3
bopcut c3

bop c3 s4
bopcut c4

bop c4 s5
bopcut c5

bop c5 s6
bopcut c6

vinit
vdisplay c6
vfit
setup Shaded display mode
1. Run the attached code in Draw Test Harness
2. See the wrong results
No tags attached.
? b.tcl (496) 2016-01-08 01:25
https://tracker.dev.opencascade.org/
Issue History
2016-01-08 01:25jaydenshuiNew Issue
2016-01-08 01:25jaydenshuiAssigned To => msv
2016-01-08 01:25jaydenshuiFile Added: b.tcl
2016-01-09 01:48msvNote Added: 0049749
2016-01-09 01:52msvAssigned Tomsv => nbv
2016-01-09 01:52msvPrioritynormal => low
2016-01-09 01:52msvStatusnew => assigned
2016-01-09 01:52msvTarget Version => 7.1.0
2016-10-25 19:04msvTarget Version7.1.0 => 7.2.0
2017-07-21 11:34msvTarget Version7.2.0 => 7.3.0
2017-12-05 17:09msvTarget Version7.3.0 => 7.4.0
2019-08-12 16:44msvTarget Version7.4.0 => 7.5.0
2020-09-14 22:55msvTarget Version7.5.0 => 7.6.0*

Notes
(0049749)
msv   
2016-01-09 01:48   
The operation gets wrong result also with the following simplified case:

box b -0.5 -0.5 -0.5 1 1 1
psphere s1 0.5
ttranslate s1 0.5 0 0
psphere s3 0.5
ttranslate s3 0 0 0.5
bcut c1 b s1
bcut c3 c1 s3

The shape c3 is wrong, though checkshape command tells it is correct.
However, the command bopcheck reports self-intersection:

Draw[94]> bopcheck c3
F/F: x59 x74