mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
TriangleMesh::slice() now accepts a vector of floats instead of doubles for consistency with mesh coordinates
This commit is contained in:
parent
69f1f65a8b
commit
3637ca39df
4 changed files with 21 additions and 13 deletions
|
@ -137,8 +137,12 @@ SV*
|
|||
TriangleMesh::slice(z)
|
||||
std::vector<double>* z
|
||||
CODE:
|
||||
// convert doubles to floats
|
||||
std::vector<float> z_f(z->begin(), z->end());
|
||||
delete z;
|
||||
|
||||
std::vector<ExPolygons> layers;
|
||||
THIS->slice(*z, &layers);
|
||||
THIS->slice(z_f, &layers);
|
||||
|
||||
AV* layers_av = newAV();
|
||||
av_extend(layers_av, layers.size()-1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue