Commit af461e09 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

Merge branch 'feature/improve-occutil-docu' into 'master'

Feature/improve occutil docu

See merge request DennisGlaeser/frackit!6
parents 395745ca 39c9288b
......@@ -18,7 +18,10 @@
*****************************************************************************/
/*!
* \file
* \brief \todo TODO doc me.
* \brief Contains utility functionality for
* operations on objects of the BRep package
* as well as parsing internal geometries into
* BRep representations.
*/
#ifndef FRACKIT_BREP_UTILITIES_HH
#define FRACKIT_BREP_UTILITIES_HH
......
......@@ -18,7 +18,9 @@
*****************************************************************************/
/*!
* \file
* \brief \todo TODO doc me.
* \brief Contains utility functionality related
* to objects & algorithms related to the
* Geometry package in OpenCascade.
*/
#ifndef FRACKIT_GEOM_UTILITIES_HH
#define FRACKIT_GEOM_UTILITIES_HH
......
......@@ -18,7 +18,9 @@
*****************************************************************************/
/*!
* \file
* \brief \todo TODO doc me.
* \brief Contains utility functionality related
* to objects & algorithms related to the
* Geometry package in OpenCascade.
*/
#ifndef FRACKIT_GP_UTILITIES_HH
#define FRACKIT_GP_UTILITIES_HH
......@@ -36,16 +38,6 @@
namespace Frackit {
namespace OCCUtilities {
//! converts an n-d point into a 3d point
template<class ctype, int dim>
Point<ctype, 3> convertTo3d(const Point<ctype, dim>& p)
{
static_assert(dim <= 3 && dim != 0, "Only 0 < dim <= 3 supported");
if (dim == 1) return Point<ctype, 3>(p.x(), 0.0, 0.0);
else if (dim == 2) return Point<ctype, 3>(p.x(), p.y(), 0.0);
else if (dim == 3) return p;
}
//! converts a point to an object from the geometric processors package
template<class ctype, int dim>
gp_Pnt point(const Point<ctype, dim>& p)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment