Fix the build
This commit is contained in:
parent
0ca17b0798
commit
904387520e
2 changed files with 1 additions and 24 deletions
|
@ -493,7 +493,7 @@ void SLAPrint::Steps::slice_model(SLAPrintObject &po)
|
||||||
sla::swap_normals(interiormesh);
|
sla::swap_normals(interiormesh);
|
||||||
params.mode = MeshSlicingParams::SlicingMode::Regular;
|
params.mode = MeshSlicingParams::SlicingMode::Regular;
|
||||||
|
|
||||||
std::vector<ExPolygons> interior_slices = slice_mesh_ex(interiormesh, slice_grid, closing_r, thr);
|
std::vector<ExPolygons> interior_slices = slice_mesh_ex(interiormesh, slice_grid, params, thr);
|
||||||
|
|
||||||
sla::ccr::for_each(size_t(0), interior_slices.size(),
|
sla::ccr::for_each(size_t(0), interior_slices.size(),
|
||||||
[&po, &interior_slices] (size_t i) {
|
[&po, &interior_slices] (size_t i) {
|
||||||
|
|
|
@ -113,29 +113,6 @@ private:
|
||||||
std::vector<size_t> m_vertex_faces_all;
|
std::vector<size_t> m_vertex_faces_all;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Index of face indices incident with a vertex index.
|
|
||||||
struct VertexFaceIndex
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
using iterator = std::vector<size_t>::const_iterator;
|
|
||||||
|
|
||||||
VertexFaceIndex(const indexed_triangle_set &its) { this->create(its); }
|
|
||||||
VertexFaceIndex() {}
|
|
||||||
|
|
||||||
void create(const indexed_triangle_set &its);
|
|
||||||
void clear() { m_vertex_to_face_start.clear(); m_vertex_faces_all.clear(); }
|
|
||||||
|
|
||||||
// Iterators of face indices incident with the input vertex_id.
|
|
||||||
iterator begin(size_t vertex_id) const throw() { return m_vertex_faces_all.begin() + m_vertex_to_face_start[vertex_id]; }
|
|
||||||
iterator end (size_t vertex_id) const throw() { return m_vertex_faces_all.begin() + m_vertex_to_face_start[vertex_id + 1]; }
|
|
||||||
// Vertex incidence.
|
|
||||||
size_t count(size_t vertex_id) const throw() { return m_vertex_to_face_start[vertex_id + 1] - m_vertex_to_face_start[vertex_id]; }
|
|
||||||
|
|
||||||
private:
|
|
||||||
std::vector<size_t> m_vertex_to_face_start;
|
|
||||||
std::vector<size_t> m_vertex_faces_all;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Map from a face edge to a unique edge identifier or -1 if no neighbor exists.
|
// Map from a face edge to a unique edge identifier or -1 if no neighbor exists.
|
||||||
// Two neighbor faces share a unique edge identifier even if they are flipped.
|
// Two neighbor faces share a unique edge identifier even if they are flipped.
|
||||||
// Used for chaining slice lines into polygons.
|
// Used for chaining slice lines into polygons.
|
||||||
|
|
Loading…
Reference in a new issue