MantisBT - Community
View Issue Details
0031836Community[OCCT] OCCT:Modeling Algorithmspublic2020-10-11 17:252020-10-24 12:41
Vico Liang 
bugmaster 
highcrash 
verifiedfixed 
[OCCT] 7.5.0 
[OCCT] 7.5.0 
bugs/modalg_7/bug31836
0031836: [REGRESSION] Modeling Algorithms - Boolean cut failed between a Cone and a Torus
The uploaded file cut-crash.brep have two solid: a cone and a Torus.
It will crash when cut the Torus from the Cone in occt 7.5.0 beta.
It works well in OCCT version 7.4.0.
pload MODELING VISUALIZATION
pcone c 285 100 300
ptorus t 80 20
ttranslate t 0 0 300
bcut r c t
vinit View1
vdisplay -dispMode 1 c t
vaspects t -setColor RED -setTransparency 0.5
vpolygonoffset t 1 2 1
verase c
vdisplay -dispMode 1 r
vaspects r -setColor GREEN
vfit



The code snipped as below:
    BRepAlgoAPI_Cut aCutAlgoAPI;
    aCutAlgoAPI.SetArguments(aArgumentShapes); // Cone
    aCutAlgoAPI.SetTools(aToolShapes);         // Torus
    aCutAlgoAPI.SetFuzzyValue(1e-6);
    aCutAlgoAPI.SetRunParallel(Standard_True);
    aCutAlgoAPI.SetNonDestructive(Standard_True);
    aCutAlgoAPI.SetToFillHistory(Standard_False);
    aCutAlgoAPI.Build();
No tags attached.
related to 0031858verified bugmaster Community [REGRESSION] Modeling Algorithms - Boolean operation crashes between the given Cylinder and Torus 
? cut-crash.brep (192,460) 2020-10-11 17:25
https://tracker.dev.opencascade.org/
jpg cut-crash.jpg (74,045) 2020-10-11 17:27
https://tracker.dev.opencascade.org/
Issue History
2020-10-11 17:25Vico LiangNew Issue
2020-10-11 17:25Vico LiangAssigned To => msv
2020-10-11 17:25Vico LiangFile Added: cut-crash.brep
2020-10-11 17:26Vico LiangDescription Updatedbug_revision_view_page.php?rev_id=23721#r23721
2020-10-11 17:27Vico LiangFile Added: cut-crash.jpg
2020-10-11 21:21abvPrioritynormal => high
2020-10-11 23:22msvRelationship addedchild of 0024789
2020-10-11 23:24msvNote Added: 0095881
2020-10-11 23:24msvAssigned Tomsv => emv
2020-10-11 23:24msvStatusnew => assigned
2020-10-12 15:38gitNote Added: 0095891
2020-10-12 15:54kgvSummaryregression issue - boolean cut failed between a cone and a Torus. => [REGRESSION] Modeling Algorithms - Boolean cut failed between a Cone and a Torus
2020-10-12 15:54kgvDescription Updatedbug_revision_view_page.php?rev_id=23725#r23725
2020-10-12 15:54kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23727#r23727
2020-10-12 17:15kgvNote Added: 0095898
2020-10-12 17:15kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23728#r23728
2020-10-12 17:16kgvNote Edited: 0095898bug_revision_view_page.php?bugnote_id=95898#r23730
2020-10-13 10:01emvNote Added: 0095917
2020-10-13 10:09kgvNote Added: 0095919
2020-10-13 10:19emvNote Added: 0095920
2020-10-13 10:19emvAssigned Toemv => msv
2020-10-13 10:19emvStatusassigned => resolved
2020-10-13 10:48gitNote Added: 0095921
2020-10-13 11:08emvNote Added: 0095922
2020-10-13 11:29msvNote Added: 0095925
2020-10-13 11:29msvAssigned Tomsv => bugmaster
2020-10-13 11:29msvStatusresolved => reviewed
2020-10-17 13:21bugmasterNote Added: 0096030
2020-10-17 13:21bugmasterStatusreviewed => tested
2020-10-17 13:27bugmasterTest case number => bugs/modalg_7/bug31836
2020-10-17 13:31bugmasterChangeset attached => occt master 815f039b
2020-10-17 13:31bugmasterStatustested => verified
2020-10-17 13:31bugmasterResolutionopen => fixed
2020-10-22 14:47kgvRelationship addedrelated to 0031858
2020-10-24 12:41gitNote Added: 0096228

Notes
(0095881)
msv   
2020-10-11 23:24   
Reverting the following commit:
0024789: BOPAlgo_Builder produces invalid result on planar, conical and spherical surfaces
makes the operation working.
Dear Eugeny, please check what can be done here.
(0095891)
git   
2020-10-12 15:38   
Branch CR31836 has been created by emv.

SHA-1: 835259244fc06d9a91bb5cbe88cfa53e1e843e29


Detailed log of new commits:

Author: emv
Date: Mon Oct 12 15:40:27 2020 +0300

    0031836: regression issue - boolean cut failed between a cone and a Torus.
    
    BOPAlgo_PaveFiller::UpdateExistingPaveBlocks: Add check for closed edge when updating pave block.
(0095898)
kgv   
2020-10-12 17:15   
(edited on: 2020-10-12 17:16)
Draw Harness script reproducing the issue with dynamically constructed torus and cone:

pload MODELING VISUALIZATION
pcone c 285 100 300
ptorus t 80 20
ttranslate t 0 0 300
bcut r c t
vinit View1
vdisplay -dispMode 1 c t
vaspects t -setColor RED -setTransparency 0.5
vpolygonoffset t 1 2 1
verase c
vdisplay -dispMode 1 r
vaspects r -setColor GREEN
vfit


(0095917)
emv   
2020-10-13 10:01   
Kirill, do you propose to remove the shape from the test base?
(0095919)
kgv   
2020-10-13 10:09   
Eugeny,

> Kirill, do you propose to remove the shape from the test base?
I see no reason adding a file artifact, if problem is reproducible using direct construction - so yes, I propose removing the file.
(0095920)
emv   
2020-10-13 10:19   
Dear Mikhail, could you please review the git branch CR31836?

Test results- http://jenkins-test-12.nnov.opencascade.com/view/CR31836-master-emv/view/COMPARE/ [^]
(0095921)
git   
2020-10-13 10:48   
Branch CR31836 has been updated forcibly by emv.

SHA-1: 22eda68c91a80257e2de6b9d28680e559732c09d
(0095922)
emv   
2020-10-13 11:08   
Done. File is removed, test case is updated.
(0095925)
msv   
2020-10-13 11:29   
For integration:
occt - CR31836
products - none
(0096030)
bugmaster   
2020-10-17 13:21   
Combination -
OCCT branch : IR-2020-10-16
master SHA - ae9f4b64cacf0df612944b3694a3bdfa5f1f29cf
a206de37fbfa0bf71bd534ae47192bbec23b8522
Products branch : IR-2020-10-16 SHA - fcb5abe005e152f7f923f4cf6c02acb07c027cdc
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: 18027.820000000127 / 18057.130000000117 [-0.16%]
Products
Total CPU difference: 12174.330000000093 / 12182.170000000115 [-0.06%]
Windows-64-VC14:
OCCT
Total CPU difference: 19740.03125 / 19746.828125 [-0.03%]
Products
Total CPU difference: 13564.71875 / 13586.625 [-0.16%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0096228)
git   
2020-10-24 12:41   
Branch CR31836 has been deleted by inv.

SHA-1: 22eda68c91a80257e2de6b9d28680e559732c09d