mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 18:56:13 +00:00
Improve performance when bed are large
This commit is contained in:
@@ -1307,9 +1307,9 @@ Polygons EdgeGrid::Grid::contours_simplified(coord_t offset, bool fill_holes) co
|
||||
// 1) Collect the lines.
|
||||
std::vector<Line> lines;
|
||||
EndPointMapType start_point_to_line_idx;
|
||||
for (int r = 0; r <= int(m_rows); ++ r) {
|
||||
for (int c = 0; c <= int(m_cols); ++ c) {
|
||||
int addr = (r + 1) * cell_cols + c + 1;
|
||||
for (coord_t r = 0; r <= coord_t(m_rows); ++ r) {
|
||||
for (coord_t c = 0; c <= coord_t(m_cols); ++ c) {
|
||||
size_t addr = (r + 1) * cell_cols + c + 1;
|
||||
bool left = cell_inside[addr - 1];
|
||||
bool top = cell_inside[addr - cell_cols];
|
||||
bool current = cell_inside[addr];
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
using coord_t = int32_t;
|
||||
#else
|
||||
//FIXME At least FillRectilinear2 and std::boost Voronoi require coord_t to be 32bit.
|
||||
typedef int64_t coord_t;
|
||||
using coord_t = int64_t;
|
||||
#endif
|
||||
|
||||
using coordf_t = double;
|
||||
|
||||
Reference in New Issue
Block a user