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::MathUtils Class Reference

Collection of tools for the Math toolkit. More...

#include <occtools/math_utils.h>

Static Public Member Functions

static gp_Trsf displacement (const gp_Ax3 &srcSys, const gp_Ax3 &dstSys)
 
static gp_Trsf transformation (const gp_Ax3 &srcSys, const gp_Ax3 &dstSys)
 
static gp_Trsf transformation (const gp_Ax3 &dstSys)
 
static gp_Trsf transformation (const gp_Quaternion &q, const gp_Vec &vec)
 
static gp_Pnt projectPointOnPlane (const gp_Pnt &p, const gp_Vec &n)
 
static std::pair< gp_Pnt, bool > projectPointOnTriangle (const gp_Pnt &p, const gp_Pnt &v0, const gp_Pnt &v1, const gp_Pnt &v2)
 
static Standard_Real euclideanNorm (const gp_Vec &vec)
 
static Standard_Real squaredEuclideanNorm (const gp_Vec &vec)
 
static Standard_Real manhattanNorm (const gp_Vec &vec)
 
static Standard_Real maximumNorm (const gp_Vec &vec)
 Returns the component of vec having the maximum absolute value. More...
 
template<typename NORM >
static bool isNull (const gp_Vec &vec, const NORM &norm)
 
static gp_Vec triangleNormal (const TColgp_Array1OfPnt &nodes, const Poly_Triangle &triangle, TopAbs_Orientation ori=TopAbs_FORWARD)
 Returns the oriented normal of a triangle. More...
 
template<typename OCC_PNT_VEC , typename TEXT_STREAM >
static TEXT_STREAM & printOccPntVec (TEXT_STREAM &ts, const OCC_PNT_VEC &v)
 

Detailed Description

Collection of tools for the Math toolkit.

Member Function Documentation

gp_Trsf occ::MathUtils::displacement ( const gp_Ax3 &  srcSys,
const gp_Ax3 &  dstSys 
)
static
Standard_Real occ::MathUtils::euclideanNorm ( const gp_Vec &  vec)
static
template<typename NORM >
bool occ::MathUtils::isNull ( const gp_Vec &  vec,
const NORM &  norm 
)
static
Standard_Real occ::MathUtils::manhattanNorm ( const gp_Vec &  vec)
static
Standard_Real occ::MathUtils::maximumNorm ( const gp_Vec &  vec)
static

Returns the component of vec having the maximum absolute value.

template<typename OCC_PNT_VEC , typename TEXT_STREAM >
TEXT_STREAM & occ::MathUtils::printOccPntVec ( TEXT_STREAM &  ts,
const OCC_PNT_VEC &  v 
)
static
gp_Pnt occ::MathUtils::projectPointOnPlane ( const gp_Pnt &  p,
const gp_Vec &  n 
)
static
std::pair< gp_Pnt, bool > occ::MathUtils::projectPointOnTriangle ( const gp_Pnt &  p,
const gp_Pnt &  v0,
const gp_Pnt &  v1,
const gp_Pnt &  v2 
)
static
Standard_Real occ::MathUtils::squaredEuclideanNorm ( const gp_Vec &  vec)
static
gp_Trsf occ::MathUtils::transformation ( const gp_Ax3 &  srcSys,
const gp_Ax3 &  dstSys 
)
static
gp_Trsf occ::MathUtils::transformation ( const gp_Ax3 &  dstSys)
static
gp_Trsf occ::MathUtils::transformation ( const gp_Quaternion &  q,
const gp_Vec &  vec 
)
static
gp_Vec occ::MathUtils::triangleNormal ( const TColgp_Array1OfPnt &  nodes,
const Poly_Triangle &  triangle,
TopAbs_Orientation  ori = TopAbs_FORWARD 
)
static

Returns the oriented normal of a triangle.

Warning
The returned vector is not normalized
Parameters
nodesVertices of the triangulation that triangle belongs to
triangleTriangle whose normal has to be computed
oriOrientation of the triangle (generally inherited from the triangulated face)

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