MantisBT - Community
View Issue Details
0030149Community[OCCT] OCCT:Meshpublic2018-09-20 18:472019-03-11 14:02
kosik 
apn 
normalminor 
verifiedfixed 
WindowsVC++ 201564 bit
[OCCT] 6.7.0 
[OCCT] 7.4.0* 
bugs mesh bug30149
0030149: BRepMesh_Delaun: free triangle is left in the mesh after cleanup of auxiliary items
I have created a body in FreeCAD
(see the attached "comb_bug.step" file).

When I open this file in an application that uses OpenCascade (e.g. FreeCAD),
the body is not rendered well.

Relevant files (FreeCAD-file, step-file, screenshot):

  http://matej-kosik.net/tmp/open_cascade_bugreport_20180920/ [^]


I've placed relevant files
stepread [locate_data_file comb_bug.step] a *
incmesh a_1 1
tricheck a_1
No tags attached.
? comb_bug.step (33,965) 2018-09-20 18:47
https://tracker.dev.opencascade.org/
Issue History
2018-09-20 18:47kosikNew Issue
2018-09-20 18:47kosikAssigned To => mpv
2018-09-20 18:47kosikFile Added: comb_bug.step
2018-09-21 09:41mpvAssigned Tompv => gka
2018-09-21 09:41mpvCategoryOCCT:Application Framework => OCCT:Data Exchange
2018-09-21 11:38BenjaminBihlerNote Added: 0079306
2019-03-02 23:55kgvAssigned Togka => oan
2019-03-02 23:55kgvCategoryOCCT:Data Exchange => OCCT:Mesh
2019-03-02 23:55kgvProduct Version => 7.3.0
2019-03-02 23:55kgvSummarybug (?) in the rendering algorithm => Mesh - bug (?) in the rendering algorithm
2019-03-02 23:59kgvProduct Version7.3.0 => 6.7.0
2019-03-02 23:59kgvTarget Version => 7.4.0*
2019-03-03 00:02kgvNote Added: 0082541
2019-03-04 13:06oanSummaryMesh - bug (?) in the rendering algorithm => BRepMesh_Delaun: free triangle is left in the mesh after cleanup of auxiliary items
2019-03-04 14:02gitNote Added: 0082580
2019-03-06 14:35gitNote Added: 0082733
2019-03-06 15:27gitNote Added: 0082741
2019-03-06 17:24gitNote Added: 0082747
2019-03-06 17:26oanNote Added: 0082748
2019-03-06 17:26oanAssigned Tooan => msv
2019-03-06 17:26oanStatusnew => resolved
2019-03-06 17:26oanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=20807#r20807
2019-03-07 13:12msvNote Added: 0082763
2019-03-07 13:12msvAssigned Tomsv => oan
2019-03-07 13:12msvStatusresolved => assigned
2019-03-07 13:20oanNote Added: 0082765
2019-03-07 13:20oanAssigned Tooan => msv
2019-03-07 13:20oanStatusassigned => resolved
2019-03-07 13:25msvNote Added: 0082766
2019-03-07 13:25msvAssigned Tomsv => bugmaster
2019-03-07 13:25msvStatusresolved => reviewed
2019-03-07 13:51apnTest case number => bugs mesh bug30149
2019-03-07 13:51apnNote Added: 0082770
2019-03-07 13:51apnStatusreviewed => tested
2019-03-10 18:17apnChangeset attached => occt master 060fc603
2019-03-10 18:17apnAssigned Tobugmaster => apn
2019-03-10 18:17apnStatustested => verified
2019-03-10 18:17apnResolutionopen => fixed
2019-03-11 14:01gitNote Added: 0082819
2019-03-11 14:02gitNote Added: 0082827

Notes
(0079306)
BenjaminBihler   
2018-09-21 11:38   
The same strange display happens also on my computer.

CATIA displays the STEP file without these two grey triangles shining through.
(0082541)
kgv   
2019-03-03 00:02   
This is a regression since OCCT 6.7.0.
(0082580)
git   
2019-03-04 14:02   
Branch CR30149 has been created by oan.

SHA-1: 65270a697812b2f01eea09c0b8822260c63db56d


Detailed log of new commits:

Author: oan
Date: Mon Mar 4 13:16:18 2019 +0300

    0030149: BRepMesh_Delaun: free triangle is left in the mesh after cleanup of auxiliary items
    
    Added new method BRepMesh_Delaun::superCleanup() intended to remove all triangles over free links remaining connected to elements of super triangle.
(0082733)
git   
2019-03-06 14:35   
Branch CR30149_1 has been created by oan.

SHA-1: 5cde1fb28a73a02e74d243cd95b7e342880b45d5


Detailed log of new commits:

Author: oan
Date: Wed Mar 6 14:29:57 2019 +0300

    0030149: BRepMesh_Delaun: free triangle is left in the mesh after cleanup of auxiliary items
    
    Remove free triangles connected to triangles over nodes of super triangle.
(0082741)
git   
2019-03-06 15:27   
Branch CR30149_1 has been updated forcibly by oan.

SHA-1: e2210c6a51dbf7defcd7012a2853022d7bc3c453
(0082747)
git   
2019-03-06 17:24   
Branch CR30149_1 has been updated forcibly by oan.

SHA-1: 5431ac662067fc67816280a88154710e8c9a8e7d
(0082748)
oan   
2019-03-06 17:26   
Dear Mikhail,

could you please review the patch located in CR30149_1.

Test reports are available at:
http://occt-tests/CR30149-master-OAN-OCCT/Windows-64-VC14/diff_summary.html [^]
http://occt-tests/CR30149-master-OAN-OCCT/Debian80-64/diff_summary.html [^]
(0082763)
msv   
2019-03-07 13:12   
Update test mesh standard_shading U5.

Please explain the difference:
IMAGE bugs modalg_2 bug21060: bug21060.png differs
(0082765)
oan   
2019-03-07 13:20   
Mikhail,

"mesh standard_shading U5" has already been updated and put in the branch.

As for "bugs modalg_2 bug21060", it is shape with self-intersections, so any incorrect modification of incorrect use case if not sufficient, IMHO.

But generally, it seems that last modification just prevents removing of some triangles by removing of seed triangle.
(0082766)
msv   
2019-03-07 13:25   
Reviewed.
(0082770)
apn   
2019-03-07 13:51   
Combination -
OCCT branch : CR30149_1
master SHA - e2210c6a51dbf7defcd7012a2853022d7bc3c453
d67d4b811012eef8913d3c535c29654d0acf3c4c
Products branch : master SHA - 50f65bc5ba4d0133f24f5e5850620f39f60a9163
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: 16566.540000000034 / 16562.049999999996 [+0.03%]
Products
Total CPU difference: 9075.800000000028 / 9082.700000000026 [-0.08%]
Windows-64-VC14:
OCCT
Total CPU difference: 17972.390625 / 17955.015625 [+0.10%]
Products
Total CPU difference: 10478.875 / 10469.015625 [+0.09%]

Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
(0082819)
git   
2019-03-11 14:01   
Branch CR30149_1 has been deleted by inv.

SHA-1: 5431ac662067fc67816280a88154710e8c9a8e7d
(0082827)
git   
2019-03-11 14:02   
Branch CR30149 has been deleted by inv.

SHA-1: 65270a697812b2f01eea09c0b8822260c63db56d