View Issue Details

IDProjectCategoryView StatusLast Update
0005576Open CASCADEOCCT:Modeling Algorithmspublic2012-01-17 16:46
ReporterptvAssigned To 
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
OSAll 
Fixed in Version5.2.0 
Summary0005576: Improvement for BRepExtrema_DistShapeShape
DescriptionDear Collegues,
I propose to test and integrate the IMP made for BRepExtrema_DistShapeShape.
This improvement (see attach) allow to improve performace when searching the
distances from one shape to a number of shapes. (Extends API of class)

Please analyse and investigate this improvement.
TIA,
BR, PTv.

PS: It was used and tested in my diploma work.
Additional information
and documentation updates
Documentation remark, added by PTV 2004-03-30 14:20:04:

Improvements:
Add empty constructor for class and two methods that allow to change on of shape
when searching distanaces from one shape to number of shapes. Add method to set
deflection independantly.

    SetDeflection(me: in out; theDeflection : Real from Standard);
        -- Default value is Precision::Confusion().

    LoadS1(me: in out; Shape1 : Shape from TopoDS);
        ---Purpose: load first shape into extrema
    
    LoadS2(me: in out; Shape1 : Shape from TopoDS);
        ---Purpose: load second shape into extrema
   
    Perform(me: in out) returns Boolean from Standard;
        ---Purpose: computation of the minimum distance (value and
        -- couple of points). Parameter theDeflection is used
        -- to specify a maximum deviation of extreme distances
        -- from the minimum one.
        -- Returns IsDone status.


Add fields to store computed maps on loaded shapes to not recompute them each
time. They are:
    myShape1 : Shape from TopoDS;
    myShape2 : Shape from TopoDS;
    myMapV1 : IndexedMapOfShape from TopTools;
    myMapV2 : IndexedMapOfShape from TopTools;
    myMapE1 : IndexedMapOfShape from TopTools;
    myMapE2 : IndexedMapOfShape from TopTools;
    myMapF1 : IndexedMapOfShape from TopTools;
    myMapF2 : IndexedMapOfShape from TopTools;

The constructor with two shapes invoke Perform automaticaly (in fix_v1 of
improvement to support old behaviour).
Modified entities:
BRepExtrema_DistShapeShape
TagsNo tags attached.
Test case number

Attached Files

  • fix_BRepExtrema.tar.gz (5,026 bytes)
  • fix_v1.tar.gz (5,021 bytes)
  • ofv-5576-v1.zip (5,456 bytes)
  • ofv-5576-v2.zip (5,548 bytes)

Activities

2004-03-30 13:50

 

fix_BRepExtrema.tar.gz (5,026 bytes)

2004-03-30 14:12

 

fix_v1.tar.gz (5,021 bytes)

2004-04-05 10:21

 

ofv-5576-v1.zip (5,456 bytes)

2004-06-11 09:34

 

ofv-5576-v2.zip (5,548 bytes)

Issue History

Date Modified Username Field Change
2004-03-30 16:03 bugmaster CC => mkk
2004-03-30 16:03 bugmaster Status new => resolved
2004-03-30 16:09 bugmaster Assigned To bugmaster => ptv
2004-03-30 16:09 bugmaster Status resolved => assigned
2004-03-30 16:21 ptv Assigned To ptv => mkk
2004-03-31 12:18 mkk Assigned To mkk => ofv
2004-03-31 14:23 bugmaster Customer => Rina
2004-04-02 12:13 bugmaster Customer => Open CASCADE
2004-04-05 12:25 ofv Status assigned => resolved
2004-04-05 12:57 bugmaster CC => mkv
2004-04-05 20:27 mkv CC => aki
2004-06-25 17:19 aki Status resolved => tested
2004-06-28 11:08 bugmaster Status tested => verified
2004-08-02 18:00 bugmaster Status verified => closed
2004-08-02 18:00 bugmaster Fixed in Version => 5.1.3
2004-08-02 18:00 bugmaster Resolution @0@ => fixed
2011-08-02 11:31 bugmaster Category OCCT:MOA => OCCT:Modeling Algorithms
2012-01-17 16:46 atp Assigned To ofv =>
2012-01-17 16:46 atp Description Updated
2012-01-17 16:46 atp Additional Information Updated