Eigenized the admesh structures

(stl_vertex, stl_normal).
This commit is contained in:
bubnikv 2018-08-22 15:34:03 +02:00
parent 6829704475
commit 76d60070eb
3 changed files with 43 additions and 144 deletions

View file

@ -362,7 +362,7 @@ void stl_facet_stats(stl_file *stl, stl_facet facet, bool &first)
// Now find the max and min values.
for (size_t i = 0; i < 3; ++ i) {
stl->stats.min = stl->stats.min.cwiseMin(facet.vertex[i]);
stl->stats.max = stl->stats.max.cwiseMin(facet.vertex[i]);
stl->stats.max = stl->stats.max.cwiseMax(facet.vertex[i]);
}
}