Added new constructor to TriangleMesh that accepts vectors of Points and make_cube function to make a new simple cube mesh.

This commit is contained in:
Joseph Lenox 2016-11-27 16:06:45 -06:00 committed by bubnikv
parent ff33fbbb9a
commit 3bb237deee
3 changed files with 66 additions and 0 deletions

View file

@ -21,6 +21,7 @@ class TriangleMesh
{
public:
TriangleMesh();
TriangleMesh(const Pointf3s &points, const std::vector<Point3> &facets);
TriangleMesh(const TriangleMesh &other);
TriangleMesh& operator= (TriangleMesh other);
void swap(TriangleMesh &other);
@ -108,6 +109,8 @@ class TriangleMeshSlicer
void make_expolygons(std::vector<IntersectionLine> &lines, ExPolygons* slices) const;
};
TriangleMesh make_cube(double x, double y, double z);
}
#endif