DiscussionsIssue archiveOCCT:Modeling Algorithms

Archived issue #0005576

Improvement for BRepExtrema_DistShapeShape

Open CASCADEOCCT:Modeling Algorithmsclosed0 public notes

Search issues

Description

Dear 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

Documentation remark, added by Author 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

Public activity

No public notes

Participants are labeled by their role within this record.