stuff.h File Reference

Mostly functors for less operators can be found here. More...

#include <TopoDS_Wire.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Face.hxx>

Go to the source code of this file.

Classes

struct  edge_container
 A container to have an easy access to an edge with start and endpoint. More...
struct  projectPointContainer
 A container used for projecting points on faces along a normal vector. More...

Functions

bool FloatHuge (const float _Left, const float _Right)
 Functor to sort two float values.
bool FloatWirePairHuge (const std::pair< float, TopoDS_Wire > &_Left, const std::pair< float, TopoDS_Wire > &_Right)
 Functor to sort a pair of type pair<float,TopoDS_Wire>.

Detailed Description

Mostly functors for less operators can be found here.

Definition in file stuff.h.


Function Documentation

bool FloatHuge ( const float  _Left,
const float  _Right 
) [inline]

Functor to sort two float values.

Just a test function which is able to sort also from high to low and not only from low to high (like the less operator is normally doing it)

Parameters:
_Left A float value
_Right A float value for the comparison with the _Left
Returns:
A Boolean Value which is either true != 0 or false == 0 depending which float value is higher

Definition at line 56 of file stuff.h.

bool FloatWirePairHuge ( const std::pair< float, TopoDS_Wire > &  _Left,
const std::pair< float, TopoDS_Wire > &  _Right 
) [inline]

Functor to sort a pair of type pair<float,TopoDS_Wire>.

Mostly used in the cutting class as a sorting of the different resulting wires is necessary if there is more then one resulting cutting curve

Parameters:
_Left A pair which consists of a float value (mostly here the Z-Level is stored) and a TopoDS_Wire
_Right Exactly the same as _Left but here it is used to compare with _First
Returns:
A Boolean Value which is either true != 0 or false == 0 depending which Z-Level is higher or lower

Definition at line 42 of file stuff.h.


Generated on Wed Nov 23 19:01:23 2011 for FreeCAD by  doxygen 1.6.1