mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
TriangleMesh::slice() now accepts a vector of floats instead of doubles for consistency with mesh coordinates
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user