OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
VoronoiVisualUtils.hpp File Reference
#include <cassert>
#include <cstddef>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <stack>
#include <libslic3r/Geometry.hpp>
#include <libslic3r/Line.hpp>
#include <libslic3r/Polygon.hpp>
#include <libslic3r/SVG.hpp>
#include <vector>
#include <utility>
#include <string>
#include "libslic3r/Geometry/Voronoi.hpp"
#include "libslic3r/Point.hpp"
#include "libslic3r/BoundingBox.hpp"
#include "VoronoiOffset.hpp"
#include "libslic3r/libslic3r.h"
Include dependency graph for VoronoiVisualUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  boost::polygon::voronoi_visual_utils< CT >

Namespaces

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

Typedefs

using Slic3r::Voronoi::Internal::VD = Geometry::VoronoiDiagram
typedef double Slic3r::Voronoi::Internal::coordinate_type
typedef boost::polygon::point_data< coordinate_type > Slic3r::Voronoi::Internal::point_type
typedef boost::polygon::segment_data< coordinate_type > Slic3r::Voronoi::Internal::segment_type
typedef boost::polygon::rectangle_data< coordinate_type > Slic3r::Voronoi::Internal::rect_type
typedef VD::cell_type Slic3r::Voronoi::Internal::cell_type
typedef VD::cell_type::source_index_type Slic3r::Voronoi::Internal::source_index_type
typedef VD::cell_type::source_category_type Slic3r::Voronoi::Internal::source_category_type
typedef VD::edge_type Slic3r::Voronoi::Internal::edge_type
typedef VD::cell_container_type Slic3r::Voronoi::Internal::cell_container_type
typedef VD::cell_container_type Slic3r::Voronoi::Internal::vertex_container_type
typedef VD::edge_container_type Slic3r::Voronoi::Internal::edge_container_type
typedef VD::const_cell_iterator Slic3r::Voronoi::Internal::const_cell_iterator
typedef VD::const_vertex_iterator Slic3r::Voronoi::Internal::const_vertex_iterator
typedef VD::const_edge_iterator Slic3r::Voronoi::Internal::const_edge_iterator

Functions

void Slic3r::Voronoi::Internal::color_exterior (const VD::edge_type *edge)
point_type Slic3r::Voronoi::Internal::retrieve_point (const Points &points, const std::vector< segment_type > &segments, const cell_type &cell)
void Slic3r::Voronoi::Internal::clip_infinite_edge (const Points &points, const std::vector< segment_type > &segments, const edge_type &edge, coordinate_type bbox_max_size, std::vector< point_type > *clipped_edge)
void Slic3r::Voronoi::Internal::sample_curved_edge (const Points &points, const std::vector< segment_type > &segments, const edge_type &edge, std::vector< point_type > &sampled_edge, coordinate_type max_dist)
BoundingBox Slic3r::get_extents (const Lines &lines)
static void Slic3r::dump_voronoi_to_svg (const char *path, const Geometry::VoronoiDiagram &vd, const Points &points, const Lines &lines, const Polygons &offset_curves=Polygons(), const Lines &helper_lines=Lines(), double scale=0)

Variables

static const std::size_t Slic3r::Voronoi::Internal::EXTERNAL_COLOR = 1