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

ModelingAlgorithms
TKShHealing
ShapeAnalysis


ShapeAnalysis_ShapeTolerance Class Reference

Tool for computing shape tolerances (minimal, maximal, average),
finding shape with tolerance matching given criteria,
setting or limitating tolerances.
.

#include <ShapeAnalysis_ShapeTolerance.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT ShapeAnalysis_ShapeTolerance ()
 Empty constructor
.
Standard_EXPORT Standard_Real Tolerance (const TopoDS_Shape &shape, const Standard_Integer mode, const TopAbs_ShapeEnum type=TopAbs_SHAPE)
 Determines a tolerance from the ones stored in a shape
Remark : calls InitTolerance and AddTolerance,
hence, can be used to start a series for cumulating tolerance
<mode> = 0 : returns the average value between sub-shapes,
<mode> > 0 : returns the maximal found,
<mode> < 0 : returns the minimal found.
<type> defines what kinds of sub-shapes to consider:
SHAPE (default) : all : VERTEX, EDGE, FACE,
VERTEX : only vertices,
EDGE : only edges,
FACE : only faces,
SHELL : combined SHELL + FACE, for each face (and containing
shell), also checks EDGE and VERTEX
.
Standard_EXPORT Handle_TopTools_HSequenceOfShape OverTolerance (const TopoDS_Shape &shape, const Standard_Real value, const TopAbs_ShapeEnum type=TopAbs_SHAPE) const
 Determines which shapes have a tolerance over the given value
<type> is interpreted as in the method Tolerance
.
Standard_EXPORT Handle_TopTools_HSequenceOfShape InTolerance (const TopoDS_Shape &shape, const Standard_Real valmin, const Standard_Real valmax, const TopAbs_ShapeEnum type=TopAbs_SHAPE) const
 Determines which shapes have a tolerance within a given interval
<type> is interpreted as in the method Tolerance
.
Standard_EXPORT void InitTolerance ()
 Initializes computation of cumulated tolerance
.
Standard_EXPORT void AddTolerance (const TopoDS_Shape &shape, const TopAbs_ShapeEnum type=TopAbs_SHAPE)
 Adds data on new Shape to compute Cumulated Tolerance
(prepares three computations : maximal, average, minimal)
.
Standard_EXPORT Standard_Real GlobalTolerance (const Standard_Integer mode) const
 Returns the computed tolerance according to the <mode>
<mode> = 0 : average
<mode> > 0 : maximal
<mode> < 0 : minimal
.

Private Attributes

Standard_Real myTols [3]
Standard_Integer myNbTol


Constructor & Destructor Documentation

Standard_EXPORT ShapeAnalysis_ShapeTolerance::ShapeAnalysis_ShapeTolerance  ) 
 


Member Function Documentation

Standard_EXPORT void ShapeAnalysis_ShapeTolerance::AddTolerance const TopoDS_Shape &  shape,
const TopAbs_ShapeEnum  type = TopAbs_SHAPE
 

Standard_EXPORT Standard_Real ShapeAnalysis_ShapeTolerance::GlobalTolerance const Standard_Integer  mode  )  const
 

Standard_EXPORT void ShapeAnalysis_ShapeTolerance::InitTolerance  ) 
 

Standard_EXPORT Handle_TopTools_HSequenceOfShape ShapeAnalysis_ShapeTolerance::InTolerance const TopoDS_Shape &  shape,
const Standard_Real  valmin,
const Standard_Real  valmax,
const TopAbs_ShapeEnum  type = TopAbs_SHAPE
const
 

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

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

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

Standard_EXPORT Handle_TopTools_HSequenceOfShape ShapeAnalysis_ShapeTolerance::OverTolerance const TopoDS_Shape &  shape,
const Standard_Real  value,
const TopAbs_ShapeEnum  type = TopAbs_SHAPE
const
 

Standard_EXPORT Standard_Real ShapeAnalysis_ShapeTolerance::Tolerance const TopoDS_Shape &  shape,
const Standard_Integer  mode,
const TopAbs_ShapeEnum  type = TopAbs_SHAPE
 


Field Documentation

Standard_Integer ShapeAnalysis_ShapeTolerance::myNbTol [private]
 

Standard_Real ShapeAnalysis_ShapeTolerance::myTols[3] [private]
 


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