diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-08-19 04:02:39 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-08-19 04:02:39 (GMT) |
commit | d656f556b85fb25903d5f18c6a9557d6ed0e6f7d (patch) | |
tree | dc28c5a2ee8fbad8fd1480a2f67a0e9fe5298f14 /src/dxftess-cgal.cc | |
parent | aa2c67d24925a8b9465d5a908662091b705cf7cc (diff) |
debugging failed test: throwntogethertest polygons
Diffstat (limited to 'src/dxftess-cgal.cc')
-rw-r--r-- | src/dxftess-cgal.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/dxftess-cgal.cc b/src/dxftess-cgal.cc index f221e3a..d19ef61 100644 --- a/src/dxftess-cgal.cc +++ b/src/dxftess-cgal.cc @@ -30,7 +30,8 @@ typedef CGAL::Constrained_Delaunay_triangulation_2<K, Tds> CDT; typedef CDT::Vertex_handle Vertex_handle; typedef CDT::Point CDTPoint; -#include <boost/unordered_map.hpp> +//#include <boost/unordered_map.hpp> +#include <map> template <class T> class DummyCriteria { public: @@ -71,8 +72,10 @@ struct point_info_t typedef std::pair<point_info_t*,point_info_t*> edge_t; void mark_inner_outer(std::vector<struct triangle> &tri, Grid2d<point_info_t> &point_info, - boost::unordered_map<edge_t,int> &edge_to_triangle, - boost::unordered_map<edge_t,int> &edge_to_path, int idx, bool inner) + std::map<edge_t,int> &edge_to_triangle, + std::map<edge_t,int> &edge_to_path, int idx, bool inner) +// boost::unordered_map<edge_t,int> &edge_to_triangle, +// boost::unordered_map<edge_t,int> &edge_to_path, int idx, bool inner) { if (tri[idx].is_marked) return; @@ -107,8 +110,10 @@ void dxf_tesselate(PolySet *ps, DxfData &dxf, double rot, bool up, bool /* do_tr std::vector<struct triangle> tri; Grid2d<point_info_t> point_info(GRID_FINE); - boost::unordered_map<edge_t,int> edge_to_triangle; - boost::unordered_map<edge_t,int> edge_to_path; +// boost::unordered_map<edge_t,int> edge_to_triangle; +// boost::unordered_map<edge_t,int> edge_to_path; + std::map<edge_t,int> edge_to_triangle; + std::map<edge_t,int> edge_to_path; CGAL::Failure_behaviour old_behaviour = CGAL::set_error_behaviour(CGAL::THROW_EXCEPTION); try { |