diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-12-14 23:20:35 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-12-14 23:20:35 (GMT) |
commit | 0a2b7ca0d4d7fb1acda9996d69b25ff6b5495856 (patch) | |
tree | 465fb326c433297bb88182de7f215ff21925cf5f /src/dxftess-cgal.cc | |
parent | f175bae46a8f15823780c5a9c89b11476acb3107 (diff) |
FIXME leaking polyset by altering functions signatures
Diffstat (limited to 'src/dxftess-cgal.cc')
-rw-r--r-- | src/dxftess-cgal.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/dxftess-cgal.cc b/src/dxftess-cgal.cc index 16eaf9f..a3ebccf 100644 --- a/src/dxftess-cgal.cc +++ b/src/dxftess-cgal.cc @@ -335,3 +335,19 @@ void dxf_tesselate(PolySet *ps, DxfData &dxf, double rot, Vector2d scale, bool u dxf.paths[path[2]].is_inner = !up; } } + +void triangulate_polygon( const PolySet::Polygon &pgon, std::vector<PolySet::Polygon> &triangles ) +{ +} + +/* given a 3d PolySet with 'near planar' faces, triangulate the faces +so CGAL Nef Polyhedron will accept them. */ +void tessellate_3d_faces( PolySet &inps, PolySet &outps ) { + for (size_t i = 0; i < inps.polygons.size(); i++) { + const PolySet::Polygon *pgon = &inps.polygons[i]; + for (size_t j = 0; j < pgon->size(); j++) { + Vector3d v = pgon->at(j); + } + } +} + |