OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    BRepExtrema_DistanceSS Class Reference

    This class allows to compute minimum distance between two brep shapes (face edge vertex) and is used in DistShapeShape class. More...

    #include <BRepExtrema_DistanceSS.hxx>

    Public Member Functions

    Constructor from two shapes

    Computes the distance between two Shapes (face edge vertex).

    Parameters
    theS1- First shape
    theS2- Second shape
    theBox1- Bounding box of first shape
    theBox2- Bounding box of second shape
    theDstRef- Initial distance between the shapes to start with
    theDeflection- Maximum deviation of extreme distances from the minimum one (default is Precision::Confusion()).
    theExtFlag- Specifies which extrema solutions to look for (default is MINMAX, applied only to point-face extrema)
    theExtAlgo- Specifies which extrema algorithm is to be used (default is Grad algo, applied only to point-face extrema)
     BRepExtrema_DistanceSS (const TopoDS_Shape &theS1, const TopoDS_Shape &theS2, const Bnd_Box &theBox1, const Bnd_Box &theBox2, const double theDstRef, const double theDeflection=Precision::Confusion(), const Extrema_ExtFlag theExtFlag=Extrema_ExtFlag_MINMAX, const Extrema_ExtAlgo theExtAlgo=Extrema_ExtAlgo_Grad)
    Results

    Returns true if the distance has been computed, false otherwise.

    bool IsDone () const
     Returns the distance value.
    double DistValue () const
     Returns the distance value.
    const NCollection_Sequence< BRepExtrema_SolutionElem > & Seq1Value () const
     Returns the list of solutions on the first shape.
    const NCollection_Sequence< BRepExtrema_SolutionElem > & Seq2Value () const
     Returns the list of solutions on the second shape.

    Detailed Description

    This class allows to compute minimum distance between two brep shapes (face edge vertex) and is used in DistShapeShape class.

    Constructor & Destructor Documentation

    ◆ BRepExtrema_DistanceSS()

    BRepExtrema_DistanceSS::BRepExtrema_DistanceSS ( const TopoDS_Shape & theS1,
    const TopoDS_Shape & theS2,
    const Bnd_Box & theBox1,
    const Bnd_Box & theBox2,
    const double theDstRef,
    const double theDeflection = Precision::Confusion(),
    const Extrema_ExtFlag theExtFlag = Extrema_ExtFlag_MINMAX,
    const Extrema_ExtAlgo theExtAlgo = Extrema_ExtAlgo_Grad )
    inline

    Member Function Documentation

    ◆ DistValue()

    double BRepExtrema_DistanceSS::DistValue ( ) const
    inline

    Returns the distance value.

    ◆ IsDone()

    bool BRepExtrema_DistanceSS::IsDone ( ) const
    inline

    Returns the distance value.

    ◆ Seq1Value()

    const NCollection_Sequence< BRepExtrema_SolutionElem > & BRepExtrema_DistanceSS::Seq1Value ( ) const
    inline

    Returns the list of solutions on the first shape.

    ◆ Seq2Value()

    const NCollection_Sequence< BRepExtrema_SolutionElem > & BRepExtrema_DistanceSS::Seq2Value ( ) const
    inline

    Returns the list of solutions on the second shape.


    The documentation for this class was generated from the following file: