diff options
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); + } + } +} + |