OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKTopAlgo
BRepExtrema


BRepExtrema_SolutionElem Class Reference

This class is used to store information relative to the
minimum distance between two shapes.
.

#include <BRepExtrema_SolutionElem.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT BRepExtrema_SolutionElem ()
Standard_EXPORT BRepExtrema_SolutionElem (const Standard_Real d, const gp_Pnt &Pt, const BRepExtrema_SupportType SolType, const TopoDS_Vertex &vertex)
 initialisation of the fields
This creator is used when the solution of a distance is a Vertex.
The different initialized fields are: _ the distance d
_ the solution point
_ the type of solution
_ and the Vertex.

Standard_EXPORT BRepExtrema_SolutionElem (const Standard_Real d, const gp_Pnt &Pt, const BRepExtrema_SupportType SolType, const TopoDS_Edge &edge, const Standard_Real t)
 initialisation of the fiels.
This constructor is used when the solution of distance is on
an Edge. The different initialized fields are:
_ the distance d,
_ the solution point,
_ the type of solution,
_ the Edge,
_ and the parameter t to locate the solution.

Standard_EXPORT BRepExtrema_SolutionElem (const Standard_Real d, const gp_Pnt &Pt, const BRepExtrema_SupportType SolType, const TopoDS_Face &face, const Standard_Real u, const Standard_Real v)
 initialisation of the fields
This constructor is used when the solution of distance is in
a Face. The different initialized fields are:
_ the distance d,
_ the solution point,
_ the type of solution,
_ the Face,
_ and the parameter u et v to locate the solution.

Standard_EXPORT Standard_Real Dist () const
 returns the value of the minimum distance.


Standard_EXPORT gp_Pnt Point () const
 returns the solution point.


Standard_EXPORT BRepExtrema_SupportType SupportKind () const
 returns the Support type :
IsVertex => The solution is a vertex.
IsOnEdge => The solution belongs to an Edge.
IsInFace => The solution is inside a Face.

Standard_EXPORT TopoDS_Vertex Vertex () const
 returns the vertex if the solution is a Vertex.

Standard_EXPORT TopoDS_Edge Edge () const
 returns the vertex if the solution is an Edge.

Standard_EXPORT TopoDS_Face Face () const
 returns the vertex if the solution is an Face.

Standard_EXPORT void EdgeParameter (Standard_Real &par1) const
 returns the parameter t if the solution is on Edge.

Standard_EXPORT void FaceParameter (Standard_Real &par1, Standard_Real &par2) const
 returns the parameters u et v if the solution is in a Face.


Private Attributes

Standard_Real myDist
gp_Pnt myPoint
BRepExtrema_SupportType mySupType
TopoDS_Vertex myVertex
TopoDS_Edge myEdge
TopoDS_Face myFace
Standard_Real myPar1
Standard_Real myPar2


Constructor & Destructor Documentation

Standard_EXPORT BRepExtrema_SolutionElem::BRepExtrema_SolutionElem  ) 
 

Standard_EXPORT BRepExtrema_SolutionElem::BRepExtrema_SolutionElem const Standard_Real  d,
const gp_Pnt &  Pt,
const BRepExtrema_SupportType  SolType,
const TopoDS_Vertex &  vertex
 

Standard_EXPORT BRepExtrema_SolutionElem::BRepExtrema_SolutionElem const Standard_Real  d,
const gp_Pnt &  Pt,
const BRepExtrema_SupportType  SolType,
const TopoDS_Edge &  edge,
const Standard_Real  t
 

Standard_EXPORT BRepExtrema_SolutionElem::BRepExtrema_SolutionElem const Standard_Real  d,
const gp_Pnt &  Pt,
const BRepExtrema_SupportType  SolType,
const TopoDS_Face &  face,
const Standard_Real  u,
const Standard_Real  v
 


Member Function Documentation

Standard_EXPORT Standard_Real BRepExtrema_SolutionElem::Dist  )  const
 

Standard_EXPORT TopoDS_Edge BRepExtrema_SolutionElem::Edge  )  const
 

Standard_EXPORT void BRepExtrema_SolutionElem::EdgeParameter Standard_Real &  par1  )  const
 

Standard_EXPORT TopoDS_Face BRepExtrema_SolutionElem::Face  )  const
 

Standard_EXPORT void BRepExtrema_SolutionElem::FaceParameter Standard_Real &  par1,
Standard_Real &  par2
const
 

void BRepExtrema_SolutionElem::operator delete void *  anAddress  )  [inline]
 

void* BRepExtrema_SolutionElem::operator new size_t  size  )  [inline]
 

void* BRepExtrema_SolutionElem::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_EXPORT gp_Pnt BRepExtrema_SolutionElem::Point  )  const
 

Standard_EXPORT BRepExtrema_SupportType BRepExtrema_SolutionElem::SupportKind  )  const
 

Standard_EXPORT TopoDS_Vertex BRepExtrema_SolutionElem::Vertex  )  const
 


Field Documentation

Standard_Real BRepExtrema_SolutionElem::myDist [private]
 

TopoDS_Edge BRepExtrema_SolutionElem::myEdge [private]
 

TopoDS_Face BRepExtrema_SolutionElem::myFace [private]
 

Standard_Real BRepExtrema_SolutionElem::myPar1 [private]
 

Standard_Real BRepExtrema_SolutionElem::myPar2 [private]
 

gp_Pnt BRepExtrema_SolutionElem::myPoint [private]
 

BRepExtrema_SupportType BRepExtrema_SolutionElem::mySupType [private]
 

TopoDS_Vertex BRepExtrema_SolutionElem::myVertex [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:41:10 2008 for OpenCASCADE by  doxygen 1.4.1