OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
EdgeGrid.cpp File Reference
#include <algorithm>
#include <cstddef>
#include <cstdlib>
#include <cstdint>
#include <utility>
#include <cmath>
#include <set>
#include <vector>
#include <float.h>
#include <unordered_map>
#include <png.h>
#include "Polygon.hpp"
#include "Point.hpp"
#include "Polyline.hpp"
#include "ExPolygon.hpp"
#include "Line.hpp"
#include "libslic3r.h"
#include "ClipperUtils.hpp"
#include "EdgeGrid.hpp"
#include "Geometry.hpp"
#include "SVG.hpp"
#include "PNGReadWrite.hpp"
#include <assert.h>
Include dependency graph for EdgeGrid.cpp:

Go to the source code of this file.

Classes

struct  Slic3r::PropagateDanielssonSingleStep< INCX, INCY >
struct  Slic3r::PropagateDanielssonSingleVStep3

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/

Macros

#define PROPAGATE_SIGNUM_SINGLE_STEP(DELTA)

Functions

std::vector< std::pair< EdgeGrid::Grid::ContourEdge, EdgeGrid::Grid::ContourEdge > > Slic3r::intersecting_edges (const Polygons &polygons)
void Slic3r::export_intersections_to_svg (const std::string &filename, const Polygons &polygons)

Macro Definition Documentation

◆ PROPAGATE_SIGNUM_SINGLE_STEP

#define PROPAGATE_SIGNUM_SINGLE_STEP ( DELTA)
Value:
do { \
size_t addr = r * ncols + c; \
unsigned char &cur_val = signs[addr]; \
if (cur_val & 4) { \
unsigned char old_val = signs[addr + (DELTA)]; \
if ((old_val & 4) == 0) \
cur_val = old_val & 1; \
} \
} while (0);

Referenced by Slic3r::EdgeGrid::Grid::calculate_sdf().