mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
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:
parent
ff33fbbb9a
commit
3bb237deee
3 changed files with 66 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue