Open CASCADE Technology  7.7.0.dev

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
 BRepExtrema_DistanceSS (const TopoDS_Shape &theS1, const TopoDS_Shape &theS2, const Bnd_Box &theBox1, const Bnd_Box &theBox2, const Standard_Real theDstRef, const Standard_Real theDeflection=Precision::Confusion(), const Extrema_ExtFlag theExtFlag=Extrema_ExtFlag_MINMAX, const Extrema_ExtAlgo theExtAlgo=Extrema_ExtAlgo_Grad)
 Computes the distance between two Shapes (face edge vertex). More...
 
Results
Standard_Boolean IsDone () const
 Returns true if the distance has been computed, false otherwise. More...
 
Standard_Real DistValue () const
 Returns the distance value. More...
 
const BRepExtrema_SeqOfSolutionSeq1Value () const
 Returns the list of solutions on the first shape. More...
 
const BRepExtrema_SeqOfSolutionSeq2Value () const
 Returns the list of solutions on the second shape. More...
 

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 Standard_Real  theDstRef,
const Standard_Real  theDeflection = Precision::Confusion(),
const Extrema_ExtFlag  theExtFlag = Extrema_ExtFlag_MINMAX,
const Extrema_ExtAlgo  theExtAlgo = Extrema_ExtAlgo_Grad 
)
inline

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)

Member Function Documentation

◆ DistValue()

Standard_Real BRepExtrema_DistanceSS::DistValue ( ) const
inline

Returns the distance value.

◆ IsDone()

Standard_Boolean BRepExtrema_DistanceSS::IsDone ( ) const
inline

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

◆ Seq1Value()

const BRepExtrema_SeqOfSolution& BRepExtrema_DistanceSS::Seq1Value ( ) const
inline

Returns the list of solutions on the first shape.

◆ Seq2Value()

const BRepExtrema_SeqOfSolution& 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: