DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0026243

Boolean operations failed on shapes with fillets

Open CASCADEOCCT:Modeling Algorithmsclosed21 public notes

Search issues

Description

The attached BRep file contains a complex model with fillets at junction of model parts.

Try to copy and rotate new shape on 90 degrees as it described in Steps to reproduce (variables are defined in the script). BOP failed on such arguments.

A result of bfuse, bcut or bcommon is an empty compound:

Output of bopargcheck:
Draw[300]> bopargcheck _model _copy #F
Made faulty shape: s1be_1
Made faulty shape: s2be_1
Made faulty shape: s1be_2
Made faulty shape: s2be_2
Made faulty shape: s1be_3
Made faulty shape: s2be_3
Made faulty shape: s1be_4
Made faulty shape: s2be_4
Made faulty shape: s1be_5
Made faulty shape: s2be_5
Made faulty shape: s1be_6
Made faulty shape: s2be_6
Made faulty shape: s1be_7
Made faulty shape: s2be_7
Made faulty shape: s1be_8
Made faulty shape: s2be_8
Made faulty shape: s2COnS_1 (MaxDist = 1.[revision removed]-006, MaxPar = 0.586004
84552583931)
Faulties for FIRST shape found : 8
---------------------------------
Shapes are not suppotrted by BOP: NO
Self-Intersections : NO
Check for SI has been aborted : NO
Too small edges : NO
Bad faces : NO
Too close vertices : NO
Too close edges : YES Cases(8) Total shapes(12)
Shapes with Continuity C0 : NO
Invalid Curve on Surface : NO

Faulties for SECOND shape found : 9
---------------------------------
Shapes are not suppotrted by BOP: NO
Self-Intersections : NO
Check for SI has been aborted : NO
Too small edges : NO
Bad faces : NO
Too close vertices : NO
Too close edges : YES Cases(8) Total shapes(14)
Shapes with Continuity C0 : NO
Invalid Curve on Surface : YES Cases(1) Total shapes(2)

8 cases of "Too close edges" all are edges at fillets.

Steps to reproduce

restore Attachment 2 (BREP) _model
tcopy _model _copy
trotate _copy 155. 100.75 0 0 0 1 90
bcommon res _model _copy

Public activity

21 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Dear msv.

The attempt to run the script:
source ANC101Compile.tcl
leads to exception on Debian Linux 7:

An exception was caught 0x7f7b71e72540 : Standard_Failure: There are no suitable edges for chamfer or fillet
** Exception ** 0x7f7b71e72540 : Standard_Failure: There are no suitable edges for chamfer or fillet
Tcl Exception: ** Exception ** 0x7f7b71e72540 : Standard_Failure: There are no suitable edges for chamfer or fillet

at line 259:
blend _model _model 2 _model_29

So, the next "Steps to reproduce" can not be done.
Please provide the normal execution of "Steps to reproduce"

cat /etc/issue
Debian GNU/Linux 7 \n \l
02Commenter 2
Dear akz, please update the script to avoid exception.
03Commenter 3
I've updated script with correct blending, as i thing. However, I'd like to notice that original script is correctly executed on Windows without any exceptions.

Last revision of OCCT version i've used:

[revision removed]
Author: apn <[email removed]>
Date: 15-May-15 3:30:41 PM
Message:
Update of testing cases for Debian 7.0 64 bit

04Commenter 4
May be the source of incorrect work on Linux is due to instability of sequence of edges that blend algorithm puts into result.
Anton, in this case, as the bug is focused on Booleans, I suggest that you save the result of blend on windows and attach it here, and modify the steps to reproduce to restore the operand instead of creation it anew.
05Commenter 5
BRep model had uploaded
06Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


No new revisions were added by this update.
07Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]


Detailed log of new commits:

Author: pkv
Date: Fri Jul 31 09:52:43 2015 +0300

    0026243: Boolean operations failed on shapes with fillets
    
    I. New features:
    No new features
    
    II. Changes:
    II.1. class IntAna_QuadQuadGeo
    - method:
    void IntAna_QuadQuadGeo::Perform(const gp_Pln& Pln,
                                     const gp_Torus& Tor,
                                     const Standard_Real Tol)
    the condition to obtain the one solution
    for the case when the torus touches the plane
    has been changed to overcome round-off errors.
    
    III. Modified entities:
    packages:
    IntAna

08Commenter 8
Git branch CR26243 is ready to review.
09Commenter 9
Reviewed.
10Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


No new revisions were added by this update.
11Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]


Detailed log of new commits:

Author: pkv
Date: Mon Aug 3 13:14:53 2015 +0300

    0026243: Boolean operations failed on shapes with fillets
    
    Detected bugs have been fixed.

12Commenter 12
Git branch CR26243_1 is ready to review.
13Commenter 13
Reviewed.
14Commenter 14
Dear Commenter 1,
Branch CR26243_1 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested on Release mode.
[revision removed]

Number of compiler warnings:

occt component :
Linux: 15 (15 on master)
Windows: 0 (0 on master)

products component :
Linux: 39 (39 on master)
Windows: 0 (0 on master)

Regressions/Differences/Improvements:
No regressions/differences

Testing cases:
bugs modalg_6 bug26243: FAILED
http://occt-tests/CR26243-1-master-occt-64/Debian70-64/bugs/modalg_6/bug26243.html
http://occt-tests/CR26243-1-master-occt-64/Windows-64-VC10/bugs/modalg_6/bug26243.html

Testing on Linux:
occt component :
Total MEMORY difference: 91795756 / 91600831 [+0.21%]
Total CPU difference: 17890.809999999172 / 18131.509999999096 [-1.33%]
products component :
Total MEMORY difference: 24829418 / 24843720 [-0.06%]
Total CPU difference: 7180.299999999987 / 6151.349999999959 [+16.73%]

Testing on Windows:
occt component :
Total MEMORY difference: 57612340 / 57633878 [-0.04%]
Total CPU difference: 16180.798122399014 / 16352.040420099176 [-1.05%]
products component :
Total MEMORY difference: 16011870 / 16018438 [-0.04%]
Total CPU difference: 5174.880772099959 / 5283.23906669996 [-2.05%]

There are no differences in images found by testdiff.
15Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]


Detailed log of new commits:

Author: mkv
Date: Tue Aug 4 17:12:15 2015 +0300

    Test case for issue CR26243

16Commenter 16
Dear pkv,
could you please review following test case
bugs modalg_6 bug26243
17Commenter 17
OK with the test case
bugs modalg_6 bug26243
18Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]


Detailed log of new commits:

Author: mkv
Date: Wed Aug 5 13:49:15 2015 +0300

    Test cases for issue CR26243

19Commenter 19
20Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]
21Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]

Related records