Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
ShapeAnalysis_ShapeTolerance Class Reference

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

#include <ShapeAnalysis_ShapeTolerance.hxx>

Public Member Functions

 ShapeAnalysis_ShapeTolerance ()
 Empty constructor.
 
double Tolerance (const TopoDS_Shape &shape, const int 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.
 
occ::handle< NCollection_HSequence< TopoDS_Shape > > OverTolerance (const TopoDS_Shape &shape, const double 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.
 
occ::handle< NCollection_HSequence< TopoDS_Shape > > InTolerance (const TopoDS_Shape &shape, const double valmin, const double 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.
 
void InitTolerance ()
 Initializes computation of cumulated tolerance.
 
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)
 
double GlobalTolerance (const int mode) const
 Returns the computed tolerance according to the <mode> <mode> = 0 : average <mode> > 0 : maximal <mode> < 0 : minimal.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ShapeAnalysis_ShapeTolerance()

ShapeAnalysis_ShapeTolerance::ShapeAnalysis_ShapeTolerance ( )

Empty constructor.

Member Function Documentation

◆ AddTolerance()

void ShapeAnalysis_ShapeTolerance::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)

◆ GlobalTolerance()

double ShapeAnalysis_ShapeTolerance::GlobalTolerance ( const int mode) const

Returns the computed tolerance according to the <mode> <mode> = 0 : average <mode> > 0 : maximal <mode> < 0 : minimal.

◆ InitTolerance()

void ShapeAnalysis_ShapeTolerance::InitTolerance ( )

Initializes computation of cumulated tolerance.

◆ InTolerance()

occ::handle< NCollection_HSequence< TopoDS_Shape > > ShapeAnalysis_ShapeTolerance::InTolerance ( const TopoDS_Shape & shape,
const double valmin,
const double 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.

◆ OverTolerance()

occ::handle< NCollection_HSequence< TopoDS_Shape > > ShapeAnalysis_ShapeTolerance::OverTolerance ( const TopoDS_Shape & shape,
const double 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.

◆ Tolerance()

double ShapeAnalysis_ShapeTolerance::Tolerance ( const TopoDS_Shape & shape,
const int 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.


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