FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
occ::TopoDsUtils Class Reference

Collection of tools for the TopoDS package. More...

#include <occtools/topods_utils.h>

Static Public Member Functions

template<typename FWD_ITERATOR >
static TopoDS_Compound makeCompoundFromShapeRange (FWD_ITERATOR iBegin, FWD_ITERATOR iEnd)
 
template<typename CONTAINER >
static TopoDS_Compound makeCompoundFromShapeContainer (CONTAINER cnter)
 Same as occ::makeCompoundFromShapeRange(cnter.begin(), cnter.end()) More...
 
template<typename FWD_ITERATOR >
static TopoDS_Wire makeWireFromEdgeRange (FWD_ITERATOR iBegin, FWD_ITERATOR iEnd)
 
static std::string shapeToString (const TopoDS_Shape &shape)
 
static TopoDS_Shape shapeFromString (const std::string &str)
 
template<typename FUNC >
static void forEach (const TopoDS_Shape &shape, TopAbs_ShapeEnum shapeType, FUNC fn)
 
template<typename FUNC >
static void forEach (TopExp_Explorer &explorer, FUNC fn)
 
template<typename FUNC >
static void forEachVertex (const TopoDS_Shape &shape, FUNC fn)
 
template<typename FUNC >
static void forEachEdge (const TopoDS_Shape &shape, FUNC fn)
 
template<typename FUNC >
static void forEachWire (const TopoDS_Shape &shape, FUNC fn)
 
template<typename FUNC >
static void forEachFace (const TopoDS_Shape &shape, FUNC fn)
 
static gp_Vec normalToFaceAtUV (const TopoDS_Face &face, Standard_Real u, Standard_Real v)
 

Detailed Description

Collection of tools for the TopoDS package.

Member Function Documentation

template<typename FUNC >
void occ::TopoDsUtils::forEach ( const TopoDS_Shape &  shape,
TopAbs_ShapeEnum  shapeType,
FUNC  fn 
)
static

Applies function fn to each explored shape inside shape

template<typename FUNC >
void occ::TopoDsUtils::forEach ( TopExp_Explorer &  explorer,
FUNC  fn 
)
static

Applies function fn to each explored shape with explorer

template<typename FUNC >
void occ::TopoDsUtils::forEachEdge ( const TopoDS_Shape &  shape,
FUNC  fn 
)
static
template<typename FUNC >
void occ::TopoDsUtils::forEachFace ( const TopoDS_Shape &  shape,
FUNC  fn 
)
static
template<typename FUNC >
void occ::TopoDsUtils::forEachVertex ( const TopoDS_Shape &  shape,
FUNC  fn 
)
static
template<typename FUNC >
void occ::TopoDsUtils::forEachWire ( const TopoDS_Shape &  shape,
FUNC  fn 
)
static
template<typename CONTAINER >
TopoDS_Compound occ::TopoDsUtils::makeCompoundFromShapeContainer ( CONTAINER  cnter)
static

Same as occ::makeCompoundFromShapeRange(cnter.begin(), cnter.end())

template<typename FWD_ITERATOR >
TopoDS_Compound occ::TopoDsUtils::makeCompoundFromShapeRange ( FWD_ITERATOR  iBegin,
FWD_ITERATOR  iEnd 
)
static

Builds a topologic compound of shapes denoted between the begin and end iterators iBegin and iEnd

Note
The value type of iBegin and iEnd (accessed with operator*) must be TopoDS_Shape
template<typename FWD_ITERATOR >
TopoDS_Wire occ::TopoDsUtils::makeWireFromEdgeRange ( FWD_ITERATOR  iBegin,
FWD_ITERATOR  iEnd 
)
static

Build a topologic wire of edges denoted between the begin and end iterators iBegin and iEnd

Note
The value type of iBegin and iEnd (accessed with operator*) must be TopoDS_Edge
gp_Vec occ::TopoDsUtils::normalToFaceAtUV ( const TopoDS_Face &  face,
Standard_Real  u,
Standard_Real  v 
)
static

Returns the oriented normal of face at parametric coords (u, v )

Note
This function is slow if called many successive times on the same face (because it constructs internally a BRepLProp_SLProps and BRepAdaptor_Surface instance)
TopoDS_Shape occ::TopoDsUtils::shapeFromString ( const std::string &  str)
static

Constructs the TopoDS_Shape from the string representation str (previously generated with shapeToString())

Uses BRepTools::Read() internally

std::string occ::TopoDsUtils::shapeToString ( const TopoDS_Shape &  shape)
static

Returns the string representation of a TopoDS_Shape

Uses BRepTools::Write() internally


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