#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/ExPolygonCollection.hpp>
◆ ExPolygonCollection() [1/3]
| Slic3r::ExPolygonCollection::ExPolygonCollection |
( |
| ) |
|
|
inline |
◆ ExPolygonCollection() [2/3]
| Slic3r::ExPolygonCollection::ExPolygonCollection |
( |
const ExPolygon & | expolygon | ) |
|
|
explicit |
8{
10}
ExPolygons expolygons
Definition ExPolygonCollection.hpp:20
References expolygons.
◆ ExPolygonCollection() [3/3]
| Slic3r::ExPolygonCollection::ExPolygonCollection |
( |
const ExPolygons & | expolygons | ) |
|
|
inlineexplicit |
◆ append()
| void Slic3r::ExPolygonCollection::append |
( |
const ExPolygons & | expolygons | ) |
|
◆ contains()
template<class T>
| template bool Slic3r::ExPolygonCollection::contains< Polyline > |
( |
const T & | item | ) |
const |
66{
68 if (
poly.contains(item))
69 return true;
70 return false;
71}
References expolygons.
◆ contains_b()
| bool Slic3r::ExPolygonCollection::contains_b |
( |
const Point & | point | ) |
const |
78{
79 for (ExPolygons::const_iterator it = this->
expolygons.begin(); it != this->expolygons.end(); ++it) {
80 if (it->contains_b(point)) return true;
81 }
82 return false;
83}
References expolygons.
◆ contours()
| Polygons Slic3r::ExPolygonCollection::contours |
( |
| ) |
const |
117{
120 for (ExPolygons::const_iterator it = this->
expolygons.begin(); it != this->expolygons.end(); ++it)
123}
Polygons contours() const
Definition ExPolygonCollection.cpp:116
std::vector< Polygon, PointsAllocator< Polygon > > Polygons
Definition Polygon.hpp:22
References contours(), and expolygons.
Referenced by contours().
◆ convex_hull()
| Polygon Slic3r::ExPolygonCollection::convex_hull |
( |
| ) |
const |
97{
99 for (ExPolygons::const_iterator it = this->
expolygons.begin(); it != this->expolygons.end(); ++it)
100 pp.insert(pp.end(), it->contour.points.begin(), it->contour.points.end());
102}
Polygon convex_hull(Points pts)
Definition ConvexHull.cpp:21
std::vector< Point, PointsAllocator< Point > > Points
Definition Point.hpp:73
References Slic3r::Geometry::convex_hull(), and expolygons.
◆ lines()
| Lines Slic3r::ExPolygonCollection::lines |
( |
| ) |
const |
106{
108 for (ExPolygons::const_iterator it = this->
expolygons.begin(); it != this->expolygons.end(); ++it) {
109 Lines ex_lines = it->lines();
110 lines.insert(
lines.end(), ex_lines.begin(), ex_lines.end());
111 }
113}
Lines lines() const
Definition ExPolygonCollection.cpp:105
std::vector< Line > Lines
Definition Line.hpp:20
References expolygons, and lines().
Referenced by lines().
◆ operator ExPolygons &()
| Slic3r::ExPolygonCollection::operator ExPolygons & |
( |
| ) |
|
|
explicit |
◆ operator Points()
| Slic3r::ExPolygonCollection::operator Points |
( |
| ) |
const |
|
explicit |
13{
16 for (Polygons::const_iterator poly = pp.begin(); poly != pp.end(); ++poly) {
17 for (Points::const_iterator point =
poly->points.begin(); point !=
poly->points.end(); ++point)
18 points.push_back(*point);
19 }
20 return points;
21}
◆ operator Polygons()
| Slic3r::ExPolygonCollection::operator Polygons |
( |
| ) |
const |
|
explicit |
24{
26 for (ExPolygons::const_iterator it = this->
expolygons.begin(); it != this->expolygons.end(); ++it) {
27 polygons.push_back(it->contour);
28 for (Polygons::const_iterator ith = it->holes.begin(); ith != it->holes.end(); ++ith) {
29 polygons.push_back(*ith);
30 }
31 }
32 return polygons;
33}
References expolygons.
◆ rotate()
| void Slic3r::ExPolygonCollection::rotate |
( |
double | angle, |
|
|
const Point & | center ) |
58{
61 }
62}
void center(ExPolygonsWithIds &e)
Definition Emboss.cpp:1382
double angle(const Eigen::MatrixBase< Derived > &v1, const Eigen::MatrixBase< Derived2 > &v2)
Definition Point.hpp:138
References Slic3r::angle(), Slic3r::center(), and expolygons.
◆ scale()
| void Slic3r::ExPolygonCollection::scale |
( |
double | factor | ) |
|
42{
44 (*it).scale(factor);
45 }
46}
References expolygons.
◆ simplify()
| void Slic3r::ExPolygonCollection::simplify |
( |
double | tolerance | ) |
|
87{
89 for (ExPolygons::const_iterator it = this->
expolygons.begin(); it != this->expolygons.end(); ++it) {
90 it->simplify(tolerance, &expp);
91 }
93}
std::vector< ExPolygon > ExPolygons
Definition ExPolygon.hpp:20
References expolygons.
◆ translate()
| void Slic3r::ExPolygonCollection::translate |
( |
double | x, |
|
|
double | y ) |
50{
52 (*it).translate(x, y);
53 }
54}
References expolygons.
◆ expolygons
| ExPolygons Slic3r::ExPolygonCollection::expolygons |
Referenced by ExPolygonCollection(), ExPolygonCollection(), append(), contains(), contains_b(), contours(), convex_hull(), Slic3r::get_extents(), lines(), operator ExPolygons &(), operator Polygons(), Slic3r::PerimeterGenerator::process_no_bridge(), rotate(), scale(), simplify(), and translate().
The documentation for this class was generated from the following files: