MantisBT - Community
View Issue Details
0024174Community[OCCT] OCCT:Modeling Algorithmspublic2013-09-13 15:422013-12-19 13:59
Timo 
bugmaster 
highmajor 
closedfixed 
[OCCT] 6.5.3 
[OCCT] 6.7.0[OCCT] 6.7.0 
bugs modalg_5(010) bug24174_1, bug24174_2
0024174: [regression] BRepBuilderAPI_Sewing returns result with very high tolerance
The following sewing operation returns a wrong result in OCCT 6.5.3 and 6.6.0.

The result is correct in OCCT 6.5.2.

In 6.6.0 the resulting shell has tolerance 105.45 and one edge is not sewed correctly (because of high tolerance).

In 6.5.2 the resulting shell had tolerance 0.076.
 
Draw script:
 
restore Comp1.brep c
explode c
tolerance c
sewing r 0.1 c_1 c_2
tolerance r
checkshape r
vinit
vdisplay r
No tags attached.
related to 0024203closed bugmaster Open CASCADE Command "sameparameter" in DRAW on attached edge set tolerance equal to 116. 
related to 0024357closed bugmaster Community BRepBuilderAPI_Sewing returns result with too high tolerance 
? Comp1.brep (760,240) 2013-09-13 15:42
https://tracker.dev.opencascade.org/
png OCC6.5.2.PNG (4,796) 2013-09-13 15:42
https://tracker.dev.opencascade.org/
png OCC6.6.0.PNG (5,591) 2013-09-13 15:42
https://tracker.dev.opencascade.org/
? stitch.brep (328,545) 2013-09-24 10:29
https://tracker.dev.opencascade.org/
Issue History
2013-09-13 15:42TimoNew Issue
2013-09-13 15:42TimoAssigned To => ifv
2013-09-13 15:42TimoFile Added: Comp1.brep
2013-09-13 15:42TimoFile Added: OCC6.5.2.PNG
2013-09-13 15:42TimoFile Added: OCC6.6.0.PNG
2013-09-24 09:08abvAssigned Toifv => gka
2013-09-24 09:08abvStatusnew => assigned
2013-09-24 10:02abvNote Added: 0025705
2013-09-24 10:02abvPrioritynormal => high
2013-09-24 10:29abvFile Added: stitch.brep
2013-09-24 10:33abvNote Edited: 0025705bug_revision_view_page.php?bugnote_id=25705#r5889
2013-09-24 18:40gkaRelationship addedrelated to 0024203
2013-09-27 12:26gkaNote Added: 0025774
2013-09-27 12:26gkaAssigned Togka => abv
2013-09-27 12:26gkaStatusassigned => resolved
2013-09-27 18:20abvNote Added: 0025786
2013-09-27 18:20abvAssigned Toabv => bugmaster
2013-09-27 18:20abvStatusresolved => reviewed
2013-09-30 15:49mkvAssigned Tobugmaster => mkv
2013-10-01 12:40mkvNote Added: 0025808
2013-10-01 12:41mkvTest case number => bugs modalg_5(010) bug24174_1, bug24174_2
2013-10-01 12:41mkvAssigned Tomkv => gka
2013-10-01 12:41mkvStatusreviewed => feedback
2013-10-01 15:56abvNote Added: 0025824
2013-10-01 15:56abvAssigned Togka => bugmaster
2013-10-01 15:56abvStatusfeedback => tested
2013-10-03 14:38bugmasterDescription Updatedbug_revision_view_page.php?rev_id=5956#r5956
2013-10-03 15:41bugmasterDescription Updatedbug_revision_view_page.php?rev_id=5961#r5961
2013-10-04 12:48bugmasterChangeset attached => occt master 47980104
2013-10-04 12:48bugmasterStatustested => verified
2013-10-04 12:48bugmasterResolutionopen => fixed
2013-11-13 19:06TimoIssue cloned: 0024357
2013-11-13 19:06TimoRelationship addedrelated to 0024357
2013-12-19 13:51bugmasterStatusverified => closed
2013-12-19 13:59bugmasterFixed in Version => 6.7.0

Notes
(0025705)
abv   
2013-09-24 10:02   
(edited on: 2013-09-24 10:33)
Another example of similar problem is reported on OCCT forum:
http://www.opencascade.org/org/forum/thread_25329/ [^]

The file is attached (stitch.brep). The test commands to reproduce the problem are:

Draw[]> restore stitch.brep a

Draw[]> tolerance a
Tolerance MAX=0.58022137281123598 AVG=0.11951856838400272 MIN=9.9999999999999995e-008
FACE : MAX=9.9999999999999995e-008 AVG=9.9999999999999995e-008 MIN=9.9999999999999995e-008
EDGE : MAX=0.58016335647558903 AVG=0.091042346630782645 MIN=1.0000000000000001e-005
VERTEX : MAX=0.58022137281123598 AVG=0.14462199456824934 MIN=1.0000000000000001e-005

Draw[]> sewing r 0.1 a

                        Informations
 ===========================================================

 Number of input shapes : 1
 Number of actual shapes : 1
 Number of Bounds : 11
 Number of Sections : 11
 Number of Edges : 10
 Number of Vertices : 11
 Number of Nodes : 9
 Number of Free Edges : 9
 Number of Contigous Edges : 1
 Number of Multiple Edges : 0
 Number of Degenerated Edges : 0
 ===========================================================

Draw[8]> tolerance r

Tolerance MAX=116.18676595408203 AVG=33.315216577269183 MIN=9.9999999999999995e-008
FACE : MAX=9.9999999999999995e-008 AVG=9.9999999999999995e-008 MIN=9.9999999999999995e-008
EDGE : MAX=116.18676595408203 AVG=21.215907065554788 MIN=1.0000000000000001e-005
VERTEX : MAX=116.18676595408203 AVG=42.393527376514477 MIN=1.0000000000000001e-005

(0025774)
gka   
2013-09-27 12:26   
Branch CR24174 is ready to be reviewed.
(0025786)
abv   
2013-09-27 18:20   
Reviewed, please test
(0025808)
mkv   
2013-10-01 12:40   
Dear BugMaster,

Branch CR24174 (and products from GIT master) was compiled on Linux and Windows platforms and tested.
SHA-1: 34bba807bd3772ec2377bb369cf8a8454b228af8

Number of compiler warnings:

occt component :
Linux: 423 (426 on master)
Windows: 24 (24 on master)

products component :
Linux: 189 (190 on master)
Windows: 287 (287 on master)

Regressions/Differences:
No regressions/differences

Testing cases:
http://occt-tests/CR24174-master-occt/Debian60-64/bugs/modalg_5/bug24174_1.html [^]
http://occt-tests/CR24174-master-occt/Windows-32-VC9/bugs/modalg_5/bug24174_1.html [^]
bugs modalg_5(010) bug24174_1: OK
http://occt-tests/CR24174-master-occt/Debian60-64/bugs/modalg_5/bug24174_2.html [^]
http://occt-tests/CR24174-master-occt/Windows-32-VC9/bugs/modalg_5/bug24174_2.html [^]
bugs modalg_5(010) bug24174_2: OK

Testing on Linux:
Total MEMORY difference: 366495364 / 366194636
Total CPU difference: 44519.16000000073 / 44692.0300000013

Testing on Windows:
Total MEMORY difference: 433472060 / 433434232
Total CPU difference: 41576.375 / 34607.296875

There are following differences in images found by testdiff.
http://occt-tests/CR24174-master-occt/Debian60-64/diff-Debian60-64.html [^]
http://occt-tests/CR24174-master-occt/Windows-32-VC9/diff-Windows-32-VC9.html [^]
IMAGE sewing tol_100 I9: I9.png differs
IMAGE sewing tol_100 J3: J3.png differs
IMAGE sewing tol_100 J5: J5.png differs
IMAGE sewing tol_100 J6: J6.png differs
IMAGE sewing tol_100 K3: K3.png differs
IMAGE sewing tol_100 Y7: Y7.png differs
IMAGE sewing tol_100 C5: C5.png differs
IMAGE sewing tol_0_01 F8: F8.png differs
(0025824)
abv   
2013-10-01 15:56   
I do not consider the reported differences in images as regressions, they are just variations on bad shapes. Thus I switch this fix to "tested".