Fixed rendering of caps in sla preview

This commit is contained in:
Enrico Turri 2018-12-10 12:59:49 +01:00
parent ed8b03a6d8
commit 9e952c9122
2 changed files with 154 additions and 124 deletions

View file

@ -701,8 +701,14 @@ private:
struct SlaCap
{
struct Triangles
{
Pointf3s object;
Pointf3s suppports;
};
typedef std::map<unsigned int, Triangles> ObjectIdToTrianglesMap;
double z;
Pointf3s triangles;
ObjectIdToTrianglesMap triangles;
SlaCap() { reset(); }
void reset() { z = DBL_MAX; triangles.clear(); }