MantisBT - Community
View Issue Details
0023051Community[OCCT] OCCT:Modeling Algorithmspublic2012-04-02 09:532012-04-10 10:19
abv 
abv 
normalminor 
closedfixed 
[OCCT] 6.5.2 
[OCCT] 6.5.3[OCCT] 6.5.3 
chl 934 X8
0023051: Bug in BRepExtrema_DistShapeShape (through BRepExtrema_DistanceSS)
The problem is reported by Rob Bachrach on OCCT User's forum at http://www.opencascade.org/org/forum/thread_23040: [^]

----------

When computing the distance between a face or edge and a vertex, with the vertex as the second argument, PointOnShape1 and PointOnShape2 results are switched.

 This seems to have been introduced in 6.5.1 and persists in 6.5.2. In 6.5.2, the lines 735 & 736 need to be changed from:
 const BRepExtrema_SolutionElem Sol1(Dstmin,P1,BRepExtrema_IsOnEdge,S1,t);
 const BRepExtrema_SolutionElem Sol2(Dstmin,Pt,BRepExtrema_IsVertex,S2);
 to
 const BRepExtrema_SolutionElem Sol1(Dstmin,Pt,BRepExtrema_IsOnEdge,S1,t);
 const BRepExtrema_SolutionElem Sol2(Dstmin,P1,BRepExtrema_IsVertex,S2);

 and lines 851 and 852 need to be changed from:
 const BRepExtrema_SolutionElem Sol1(Dstmin,P1,BRepExtrema_IsInFace,S1,U,V);
 const BRepExtrema_SolutionElem Sol2(Dstmin,Pt,BRepExtrema_IsVertex,S2);
 to
 const BRepExtrema_SolutionElem Sol1(Dstmin,Pt,BRepExtrema_IsInFace,S1,U,V);
 const BRepExtrema_SolutionElem Sol2(Dstmin,P1,BRepExtrema_IsVertex,S2);

-------

Note that the problem with edge has been fixed already in #22758, while the problem with face is still there
See attached script bug_distshape_fv.tcl
No tags attached.
? bug_distshape_fv.tcl (1,338) 2012-04-02 09:53
https://tracker.dev.opencascade.org/
? X8 (1,559) 2012-04-02 17:08
https://tracker.dev.opencascade.org/
Issue History
2012-04-02 09:53abvNew Issue
2012-04-02 09:53abvAssigned To => abv
2012-04-02 09:53abvFile Added: bug_distshape_fv.tcl
2012-04-02 13:07abvStatusnew => resolved
2012-04-02 13:09abvNote Added: 0020235
2012-04-02 13:09abvStatusresolved => reviewed
2012-04-02 13:45apnTest case number => chl 934 X8
2012-04-02 14:35mkvAssigned Toabv => apn
2012-04-02 17:07apnNote Added: 0020239
2012-04-02 17:08apnFile Added: X8
2012-04-02 17:08apnAssigned Toapn => bugmaster
2012-04-02 17:08apnStatusreviewed => tested
2012-04-10 10:18abvChangeset attached => occt master 46def2b5
2012-04-10 10:19abvAssigned Tobugmaster => abv
2012-04-10 10:19abvStatustested => verified
2012-04-10 10:19abvResolutionopen => fixed

Notes
(0020235)
abv   
2012-04-02 13:09   
Fix integrated to branch CR23051; please test
(0020239)
apn   
2012-04-02 17:07   
Dear BugMaster,
     Workbench KAS:dev:apn-23051-occt was created from git branch CR23051 (and apn-23051-products from svn trunk) and compiled on Linux platform.
   
     There are not regressions in apn-23051-products regarding to KAS:dev:products-20120329-opt
  
     Test case for this fix is chl 934 X8. It's OK.
     
     See results in /QADisk/occttests/results/KAS/dev/apn-23051-products_02042012/lin
     See reference results in /QADisk/occttests/results/KAS/dev/products-20120329-opt_29032012/lin
     See test cases in /QADisk/occttests/tests/ED