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

[occ][gp] remove misplaced and obsolete convertTo3d() function

parent d90c0657
......@@ -36,16 +36,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