Skip to content
Snippets Groups Projects
Commit ca15be85 authored by Tom Fischer's avatar Tom Fischer
Browse files

[GL] SurfaceGrid: Rm friend class, abort on error.

parent 5fa276c0
No related branches found
No related tags found
No related merge requests found
...@@ -120,10 +120,11 @@ void SurfaceGrid::sortTrianglesInGridCells(Surface const*const sfc) ...@@ -120,10 +120,11 @@ void SurfaceGrid::sortTrianglesInGridCells(Surface const*const sfc)
Point const& p0(*((*sfc)[l]->getPoint(0))); Point const& p0(*((*sfc)[l]->getPoint(0)));
Point const& p1(*((*sfc)[l]->getPoint(1))); Point const& p1(*((*sfc)[l]->getPoint(1)));
Point const& p2(*((*sfc)[l]->getPoint(2))); Point const& p2(*((*sfc)[l]->getPoint(2)));
DBUG("Sorting triangle %d [(%f,%f,%f), (%f,%f,%f), (%f,%f,%f) into " ERR("Sorting triangle %d [(%f,%f,%f), (%f,%f,%f), (%f,%f,%f) into "
"grid.", "grid.",
l, p0[0], p0[1], p0[2], p1[0], p1[1], p1[2], p2[0], p2[1], p2[2] l, p0[0], p0[1], p0[2], p1[0], p1[1], p1[2], p2[0], p2[1], p2[2]
); );
std::abort();
} }
} }
} }
......
...@@ -34,7 +34,6 @@ public: ...@@ -34,7 +34,6 @@ public:
double eps = std::numeric_limits<double>::epsilon()) const; double eps = std::numeric_limits<double>::epsilon()) const;
private: private:
friend GeoLib::Surface;
void sortTrianglesInGridCells(GeoLib::Surface const*const surface); void sortTrianglesInGridCells(GeoLib::Surface const*const surface);
bool sortTriangleInGridCells(GeoLib::Triangle const*const triangle); bool sortTriangleInGridCells(GeoLib::Triangle const*const triangle);
boost::optional<std::array<std::size_t,3>> boost::optional<std::array<std::size_t,3>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment