diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-12-15 15:00:43 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-12-15 15:00:43 (GMT) |
commit | 5271b345bc755f37e98d7f497f6686d34990fa5c (patch) | |
tree | 0b78b47ca36c20862446a7b7101056674af78c32 /src/dxftess-cgal.cc | |
parent | e6bf94b6ff0fcb918cc42dc26f3627382a50490c (diff) |
minor tweak for clarity
Diffstat (limited to 'src/dxftess-cgal.cc')
-rw-r--r-- | src/dxftess-cgal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dxftess-cgal.cc b/src/dxftess-cgal.cc index a2d3cb3..14f1204 100644 --- a/src/dxftess-cgal.cc +++ b/src/dxftess-cgal.cc @@ -418,7 +418,7 @@ projection_t find_good_projection( PolySet::Polygon pgon ) { algorithm. Project the polygon's points into 2d using the given projection before performing the triangulation. This code assumes input polygon is simple, no holes, no self-intersections, no duplicate points, and is -properly oriented. */ +properly oriented. output is a sequence of 3d triangles. */ bool triangulate_polygon( const PolySet::Polygon &pgon, std::vector<PolySet::Polygon> &triangles, projection_t projection ) { bool err = false; @@ -491,12 +491,12 @@ void tessellate_3d_faces( const PolySet &inps, PolySet &outps ) { PRINT("WARNING: PolySet has polygon with <3 points"); continue; } - std::vector<PolySet::Polygon> triangles; projection_t goodproj = find_good_projection( pgon ); if (goodproj==NONE) { PRINT("WARNING: PolySet has degenerate polygon"); continue; } + std::vector<PolySet::Polygon> triangles; bool err = triangulate_polygon( pgon, triangles, goodproj ); if (!err) for (size_t j=0;j<triangles.size();j++) { PolySet::Polygon t = triangles[j]; |