View Issue Details

IDProjectCategoryView StatusLast Update
0030760CommunityOCCT:Modeling Algorithmspublic2019-10-21 13:55
Reporterlikewei92 Assigned Tobugmaster  
PrioritynormalSeveritymajor 
Status closedResolutionfixed 
PlatformLinuxOSDebian 6.0 
Product Version7.3.0 
Target Version7.4.0Fixed in Version7.4.0 
Summary0030760: [Regression to 7.2.0] Modeling Algorithms - Intersection fails in Occt 7.3.0
DescriptionI'm seeing a Boolean intersection fail in occt 7.3.0 that didn't fail in 7.2.0. I observed this in FreeCAD, and checked that the intersection fails with every version of 7.3.0. You can see more details with pictures here: https://forum.freecadweb.org/viewtopic.php?f=3&t=36711
Steps To Reproducerestore shapes.brep a
explode a so

bcommon r a_1 a_2
# no result

bcommon r a_2 a_1
# result is good
TagsNo tags attached.
Test case numberbugs/modalg_7/bug30760

Attached Files

  • shapes.brep (69,262 bytes)
  • wrong_intersect.brep (408 bytes)
  • correct_intersect.brep (45,823 bytes)

Activities

msv

2019-05-31 15:11

developer   ~0084734

Dear likewei92, could you attach here the files to reproduce in BREP format?

likewei92

2019-05-31 18:02

reporter  

shapes.brep (69,262 bytes)

likewei92

2019-05-31 18:02

reporter  

wrong_intersect.brep (408 bytes)

likewei92

2019-05-31 18:03

reporter  

correct_intersect.brep (45,823 bytes)

likewei92

2019-05-31 18:05

reporter   ~0084740

Sure! shapes.brep shows the two shapes that are being intersected. wrong_intersect.brep is generated using 7.3.0 (there's nothing there...), and correct_intersect.brep is generated using 7.2.0.

Thanks for looking into it and let me know if you need anything else from me!

msv

2019-05-31 19:49

developer   ~0084742

If you swap the operands then the result is good.
So, here we see instability connected with the order of arguments.

msv

2019-05-31 20:17

developer   ~0084743

The shape contains some faces built on planar bspline surfaces (degree in both U and V is 1).
If we convert them to be built on canonical planes (I used Canonical Recognition component https://www.opencascade.com/content/canonical-recognition) the result is good regardless of the order of the arguments.

likewei92

2019-06-01 10:05

reporter   ~0084744

Thanks for the workaround! Is it possible to fix the original instability?

msv

2019-06-01 21:56

developer   ~0084764

There is nothing impossible. However, this task is not payed. Therefore it has very low priority.

likewei92

2019-06-02 09:48

reporter   ~0084765

Ok, what would be the process to turn this into a paid task? I can't seem to find a donation page or something

msv

2019-06-03 09:19

developer   ~0084767

Please fill in contact form at https://www.opencascade.com/contact. The support manager will communicate you to discuss the ways of putting the bug into paid status.

msv

2019-06-03 10:31

developer   ~0084768

This bug is classified as a regression. It will be fixed on account of internal OCC resources.

git

2019-06-03 11:37

administrator   ~0084769

Branch CR30760 has been created by emv.

SHA-1: 3a42f7ee9a42aceb45c6c503403493f8976d2c29


Detailed log of new commits:

Author: emv
Date: Mon Jun 3 11:36:18 2019 +0300

    0030760: Modeling Algorithms - Intersection fails in Occt 7.3.0
    
    Use FORWARD orientation of edges and face when attaching pcurve from one edge to another.
    Test case for the issue.

emv

2019-06-04 07:25

developer   ~0084787

Dear Mikhail, could you please review the git branch CR30760?
Test results - http://vm-jenkins-test-12.nnov.opencascade.com:8080/view/CR30760-master-emv/view/COMPARE/

git

2019-06-04 13:34

administrator   ~0084813

Branch CR30760 has been updated forcibly by emv.

SHA-1: 68fce0db696b6bf04765e52cbb080efd3ab9845c

msv

2019-06-04 15:22

developer   ~0084816

Reviewed.

bugmaster

2019-06-04 17:54

administrator   ~0084822

Combination -
OCCT branch : CR30760
master SHA - 3a42f7ee9a42aceb45c6c503403493f8976d2c29
d67d4b811012eef8913d3c535c29654d0acf3c4c
Products branch : master SHA - c337118ac41004248abf27585e4c0e972f1a923e
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 16283.950000000004 / 16313.930000000051 [-0.18%]
Products
Total CPU difference: 10489.97000000005 / 10490.14000000005 [-0.00%]
Windows-64-VC14:
OCCT
Total CPU difference: 17720.8125 / 17714.90625 [+0.03%]
Products
Total CPU difference: 12062.0 / 12054.984375 [+0.06%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention

git

2019-06-08 13:21

administrator   ~0084957

Branch CR30760 has been deleted by inv.

SHA-1: 68fce0db696b6bf04765e52cbb080efd3ab9845c

Related Changesets

occt: master 78005ffe

2019-06-03 08:36:18

emv


Committer: bugmaster Details Diff
0030760: Modeling Algorithms - Intersection fails in Occt 7.3.0

Use FORWARD orientation of edges and face when attaching pcurve from one edge to another.
Test case for the issue.
Affected Issues
0030760
mod - src/BOPTools/BOPTools_AlgoTools2D_1.cxx Diff File
add - tests/bugs/modalg_7/bug30760 Diff File

Issue History

Date Modified Username Field Change
2019-05-31 13:46 likewei92 New Issue
2019-05-31 13:46 likewei92 Assigned To => kgv
2019-05-31 13:51 kgv Assigned To kgv => msv
2019-05-31 13:51 kgv Category OCCT:Coding => OCCT:Modeling Algorithms
2019-05-31 15:11 msv Note Added: 0084734
2019-05-31 15:46 kgv Summary Intersection fails in Occt 7.3.0 => Modeling Algorithms - Intersection fails in Occt 7.3.0
2019-05-31 18:02 likewei92 File Added: shapes.brep
2019-05-31 18:02 likewei92 File Added: wrong_intersect.brep
2019-05-31 18:03 likewei92 File Added: correct_intersect.brep
2019-05-31 18:05 likewei92 Note Added: 0084740
2019-05-31 19:48 msv Steps to Reproduce Updated
2019-05-31 19:49 msv Note Added: 0084742
2019-05-31 20:17 msv Note Added: 0084743
2019-06-01 10:05 likewei92 Note Added: 0084744
2019-06-01 21:56 msv Note Added: 0084764
2019-06-02 09:48 likewei92 Note Added: 0084765
2019-06-03 09:19 msv Note Added: 0084767
2019-06-03 10:31 msv Note Added: 0084768
2019-06-03 10:31 msv Summary Modeling Algorithms - Intersection fails in Occt 7.3.0 => [Regression to 7.2.0] Modeling Algorithms - Intersection fails in Occt 7.3.0
2019-06-03 10:31 msv Assigned To msv => emv
2019-06-03 10:31 msv Status new => assigned
2019-06-03 11:37 git Note Added: 0084769
2019-06-04 07:25 emv Note Added: 0084787
2019-06-04 07:25 emv Assigned To emv => msv
2019-06-04 07:25 emv Status assigned => resolved
2019-06-04 13:34 git Note Added: 0084813
2019-06-04 15:22 msv Note Added: 0084816
2019-06-04 15:22 msv Assigned To msv => bugmaster
2019-06-04 15:22 msv Status resolved => reviewed
2019-06-04 17:53 bugmaster Test case number => bugs/modalg_7/bug30760
2019-06-04 17:54 bugmaster Note Added: 0084822
2019-06-04 17:54 bugmaster Status reviewed => tested
2019-06-08 13:11 bugmaster Changeset attached => occt master 78005ffe
2019-06-08 13:11 bugmaster Status tested => verified
2019-06-08 13:11 bugmaster Resolution open => fixed
2019-06-08 13:21 git Note Added: 0084957
2019-10-21 13:55 abv Target Version => 7.4.0