Commit 252056ad authored by Henry's avatar Henry
Browse files

triSurfaceTools: Removed unused dependency on CGAL

parent 70b48f33
......@@ -2599,84 +2599,6 @@ Foam::triSurface Foam::triSurfaceTools::delaunay2D(const List<vector2D>& pts)
}
//// Use CGAL to do Delaunay
//#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
//#include <CGAL/Delaunay_triangulation_2.h>
//#include <CGAL/Triangulation_vertex_base_with_info_2.h>
//#include <cassert>
//
//struct K : CGAL::Exact_predicates_inexact_constructions_kernel {};
//
//typedef CGAL::Triangulation_vertex_base_with_info_2<Foam::label, K> Vb;
//typedef CGAL::Triangulation_data_structure_2<Vb> Tds;
//typedef CGAL::Delaunay_triangulation_2<K,Tds> Triangulation;
//
//typedef Triangulation::Vertex_handle Vertex_handle;
//typedef Triangulation::Vertex_iterator Vertex_iterator;
//typedef Triangulation::Face_handle Face_handle;
//typedef Triangulation::Finite_faces_iterator Finite_faces_iterator;
//typedef Triangulation::Point Point;
//Foam::triSurface Foam::triSurfaceTools::delaunay2D(const List<vector2D>& pts)
//{
// Triangulation T;
//
// // Insert 2D vertices; building triangulation
// forAll(pts, i)
// {
// const point& pt = pts[i];
//
// T.insert(Point(pt[0], pt[1]));
// }
//
//
// // Number vertices
// // ~~~~~~~~~~~~~~~
//
// label vertI = 0;
// for
// (
// Vertex_iterator it = T.vertices_begin();
// it != T.vertices_end();
// ++it
// )
// {
// it->info() = vertI++;
// }
//
// // Extract faces
// // ~~~~~~~~~~~~~
//
// List<labelledTri> faces(T.number_of_faces());
//
// label faceI = 0;
//
// for
// (
// Finite_faces_iterator fc = T.finite_faces_begin();
// fc != T.finite_faces_end();
// ++fc
// )
// {
// faces[faceI++] = labelledTri
// (
// fc->vertex(0)->info(),
// f[1] = fc->vertex(1)->info(),
// f[2] = fc->vertex(2)->info()
// );
// }
//
// pointField points(pts.size());
// forAll(pts, i)
// {
// points[i][0] = pts[i][0];
// points[i][1] = pts[i][1];
// points[i][2] = 0.0;
// }
//
// return triSurface(faces, points);
//}
void Foam::triSurfaceTools::calcInterpolationWeights
(
const triPointRef& tri,
......
Markdown is supported
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