MantisBT - Open CASCADE
View Issue Details
0027033Open CASCADE[OCCT] OCCT:Modeling Algorithmspublic2015-12-23 06:462016-12-09 16:39
abv 
apn 
normalminor 
closedfixed 
WindowsVC++ 201064 bit
 
[OCCT] 7.1.0[OCCT] 7.1.0 
bugs modalg_6 bug27033
0027033: Modeling -- ensure stable result of area calculation
The results of sprops command are unstable on some shapes, yielding different values from time to time for exactly the same shape. This should be fixed so that results are always the same.

Note that similar problem has been reported in 0025945, but in that issue the differences were explained by differences in argument shapes (tolerances).

The instability has been discovered on shape produced during test bugs step bug11856
pload TOPTEST XDE

stepread [locate_data_file OCC11856.stp] a * ;# just to generate shape, too large to attach here

# "sprops result -eps 0.1" in most cases yields 611185, but sometimes (about 1 per 10 runs) 61173, 577943, or other
for {set i 1} {$i < 1000} {incr i} {checkprops result -s 611185 -eps 0.1}
No tags attached.
related to 0025945closed bugmaster Open CASCADE Make stable checking of shape global properties in tests 
Issue History
2015-12-23 06:46abvNew Issue
2015-12-23 06:46abvAssigned To => msv
2015-12-23 06:50abvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=12637#r12637
2015-12-23 06:51abvRelationship addedrelated to 0025945
2015-12-23 06:51abvRelationship addedrelated to 0011856
2015-12-23 06:52abvTarget Version7.0.0 => 7.1.0
2015-12-23 09:52msvAssigned Tomsv => ifv
2015-12-23 09:52msvStatusnew => assigned
2016-10-28 11:54msvTarget Version7.1.0 => 7.2.0
2016-11-24 11:31ifvNote Added: 0060751
2016-11-24 11:31ifvAssigned Toifv => abv
2016-11-24 11:31ifvStatusassigned => feedback
2016-11-24 14:47msvNote Added: 0060754
2016-11-24 16:58gitNote Added: 0060755
2016-11-24 16:59msvAssigned Toabv => msv
2016-11-24 16:59msvStatusfeedback => assigned
2016-11-24 16:59msvNote Added: 0060756
2016-11-24 16:59msvAssigned Tomsv => ifv
2016-11-24 16:59msvStatusassigned => resolved
2016-11-25 08:58ifvNote Added: 0060768
2016-11-25 08:58ifvAssigned Toifv => bugmaster
2016-11-25 08:58ifvStatusresolved => reviewed
2016-11-25 12:42apnTest case number => bugs modalg_6 bug27033
2016-11-25 12:43apnTarget Version7.2.0 => 7.1.0
2016-11-25 14:42apnChangeset attached => occt master 89aebdea
2016-11-25 14:42apnAssigned Tobugmaster => apn
2016-11-25 14:42apnStatusreviewed => verified
2016-11-25 14:42apnResolutionopen => fixed
2016-12-07 11:30gitNote Added: 0061239
2016-12-09 16:30aivStatusverified => closed
2016-12-09 16:39aivFixed in Version => 7.1.0

Notes
(0060751)
ifv   
2016-11-24 11:31   
Cannot reproduce. May be there are any specific condition?
(0060754)
msv   
2016-11-24 14:47   
It is reproduced on MSVS 2013 in Release mode. Computation on the face 225 is unstable.
(0060755)
git   
2016-11-24 16:58   
Branch CR27033 has been created by msv.

SHA-1: 5c98c234cee2aaff1026004f2829e36ff43674b6


Detailed log of new commits:

Author: msv
Date: Thu Nov 24 16:56:30 2016 +0300

    0027033: Modeling -- ensure stable result of area calculation
    
    The method BRepGProp_Face::LKnots has been corrected to make proper initialization of the output data for the case of a circle.
(0060756)
msv   
2016-11-24 16:59   
Dear Igor, please review the fix.
(0060768)
ifv   
2016-11-25 08:58   
Seems to be valid
(0061239)
git   
2016-12-07 11:30   
Branch CR27033 has been deleted by kgv.

SHA-1: 5c98c234cee2aaff1026004f2829e36ff43674b6