Home
last modified time | relevance | path

Searched refs:ExPolygon (Results 1 – 25 of 121) sorted by relevance

12345

/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/tests/libslic3r/
H A Dtest_elephant_foot_compensation.cpp34 static ExPolygon spirograph_gear_1mm() in spirograph_gear_1mm()
36 ExPolygon out; in spirograph_gear_1mm()
47 ExPolygon out; in box_with_hole_close_to_wall()
81 static ExPolygon thin_ring() in thin_ring()
83 ExPolygon out; in thin_ring()
156 ExPolygon out; in vase_with_fins()
225 ExPolygon out; in contour_with_hole()
423 static bool is_efc_result_smaller(const ExPolygon &efc, const ExPolygon &orig) in is_efc_result_smaller()
495 ExPolygon output;
520 ExPolygon expoly;
[all …]
H A Dtest_marchingsquares.cpp43 static ExPolygon square(double a, Point center = {0, 0}) in square()
45 ExPolygon poly;
54 static ExPolygon square_with_hole(double a, Point center = {0, 0}) in square_with_hole()
56 ExPolygon poly = square(a);
69 ExPolygon poly;
96 for (const ExPolygon &expoly : ref) rst.draw(expoly); in test_expolys()
165 ExPolygon rect = square(4);
333 for (ExPolygon &island : layer) { in recreate_object_from_rasters()
H A Dtest_clipper_utils.cpp18 Slic3r::ExPolygon square_with_hole(square, hole_in_square);
46 Slic3r::ExPolygon square_with_hole(
185 ExPolygon match({ { 20, 18 }, { 10, 18 }, { 10, 12 }, { 20, 12 } },
202 … REQUIRE(union_.front() == ExPolygon { { 40, 40 }, { 0, 40 }, { 0, 0 }, { 40, 0 } } );
209 …REQUIRE(diff.front().area() == Approx(ExPolygon({ {40, 40}, {0, 40}, {0, 0}, {40, 0} }, { {15, 25}…
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/src/libslic3r/
H A DExPolygon.hpp14 class ExPolygon;
15 typedef std::vector<ExPolygon> ExPolygons;
17 class ExPolygon class
20 ExPolygon() = default;
21 ExPolygon(const ExPolygon &other) = default;
22 ExPolygon(ExPolygon &&other) = default;
34 ExPolygon& operator=(const ExPolygon &other) = default;
35 ExPolygon& operator=(ExPolygon &&other) = default;
319 for (const ExPolygon &exp : expolys) in expolygons_simplify()
381 …static inline Slic3r::ExPolygon& set_points(Slic3r::ExPolygon& expolygon, iT input_begin, iT input… in set_points()
[all …]
H A DExPolygon.cpp17 ExPolygon::operator Points() const in operator Points()
28 ExPolygon::operator Polygons() const in operator Polygons()
33 ExPolygon::operator Polylines() const in operator Polylines()
38 void ExPolygon::scale(double factor) in scale()
45 void ExPolygon::translate(const Point &p) in translate()
52 void ExPolygon::rotate(double angle) in rotate()
66 double ExPolygon::area() const in area()
74 bool ExPolygon::is_valid() const in is_valid()
136 ExPolygon::overlaps(const ExPolygon &other) const in overlaps()
362 ExPolygon clone = *this; in get_trapezoids2()
[all …]
H A DMinAreaBoundingBox.cpp24 template<> struct ShapeTag<Slic3r::ExPolygon> { using Type = PolygonTag; };
28 template<> struct ContourType<Slic3r::ExPolygon> { using Type = Slic3r::Points; };
41 template<> inline Slic3r::Points& contour(Slic3r::ExPolygon& sh) { return sh.contour.points; } in contour()
42 template<> inline const Slic3r::Points& contour(const Slic3r::ExPolygon& sh) { return sh.contour.po… in contour()
51 template<> inline Slic3r::ExPolygon create<Slic3r::ExPolygon>(Slic3r::Points&& contour) in create()
53 Slic3r::ExPolygon expoly; expoly.contour.points.swap(contour); in create()
90 MinAreaBoundigBox::MinAreaBoundigBox(const ExPolygon &p, PolygonLevel pc) in MinAreaBoundigBox()
92 const ExPolygon &chull = pc == pcConvex ? p : in MinAreaBoundigBox()
96 libnest2d::minAreaBoundingBox<ExPolygon, Unit, Rational>(chull); in MinAreaBoundigBox()
147 void remove_collinear_points(ExPolygon &p) in remove_collinear_points()
[all …]
H A DTesselate.hpp10 class ExPolygon;
11 typedef std::vector<ExPolygon> ExPolygons;
16 extern std::vector<Vec3d> triangulate_expolygon_3d (const ExPolygon &poly, coordf_t z = 0, bool f…
18 extern std::vector<Vec2d> triangulate_expolygon_2d (const ExPolygon &poly, bool flip = NORMALS_UP…
20 extern std::vector<Vec2f> triangulate_expolygon_2f (const ExPolygon &poly, bool flip = NORMALS_UP…
H A DElephantFootCompensation.hpp11 ExPolygon elephant_foot_compensation(const ExPolygon &input, double min_countour_width, const dou…
13 ExPolygon elephant_foot_compensation(const ExPolygon &input, const Flow &external_perimeter_flow,…
H A DMinAreaBoundingBox.hpp9 class ExPolygon;
12 void remove_collinear_points(ExPolygon& p);
36 explicit MinAreaBoundigBox(const ExPolygon&, PolygonLevel = pcSimple);
H A DSurface.hpp35 ExPolygon expolygon;
47 Surface(SurfaceType _surface_type, const ExPolygon &_expolygon) in Surface()
51 Surface(const Surface &other, const ExPolygon &_expolygon) in Surface()
61 Surface(SurfaceType _surface_type, const ExPolygon &&_expolygon) in Surface()
65 Surface(const Surface &other, const ExPolygon &&_expolygon) in Surface()
154 expolygons.emplace_back(ExPolygon(std::move(it->expolygon))); in to_expolygons()
229 for (const ExPolygon &expoly : src) in surfaces_append()
235 for (const ExPolygon &expoly : src) in surfaces_append()
246 for (ExPolygon &expoly : src) in surfaces_append()
H A DTesselate.cpp23 std::vector<Vec3d> tesselate3d(const ExPolygon &expoly, double z_, bool flipped_) in tesselate3d()
67 for (const ExPolygon &expoly : expolygons) { in tesselate3d()
75 for (const ExPolygon &expoly : expolygons) { in tesselate3d()
192 std::vector<Vec3d> triangulate_expolygon_3d(const ExPolygon &poly, coordf_t z, bool flip) in triangulate_expolygon_3d()
204 std::vector<Vec2d> triangulate_expolygon_2d(const ExPolygon &poly, bool flip) in triangulate_expolygon_2d()
226 std::vector<Vec2f> triangulate_expolygon_2f(const ExPolygon &poly, bool flip) in triangulate_expolygon_2f()
H A DArrange.hpp46 ExPolygon poly; /// The 2D silhouette to be arranged
66 inline ExPolygon transformed_poly() const in transformed_poly()
68 ExPolygon ret = poly; in transformed_poly()
H A DClipperUtils.hpp60 ClipperLib::Paths _offset(const Slic3r::ExPolygon &expolygon, const float delta, ClipperLib::JoinTy…
62 inline Slic3r::Polygons offset(const Slic3r::ExPolygon &expolygon, const float delta, ClipperLib::J… in offset()
70 inline Slic3r::ExPolygons offset_ex(const Slic3r::ExPolygon &expolygon, const float delta, ClipperL… in offset_ex()
288 ExPolygon level; in traverse_pt()
322 Polygons variable_offset_inner(const ExPolygon &expoly, const std::vector<std::vector<float>> &del…
323 Polygons variable_offset_outer(const ExPolygon &expoly, const std::vector<std::vector<float>> &del…
324 ExPolygons variable_offset_outer_ex(const ExPolygon &expoly, const std::vector<std::vector<float>> …
325 ExPolygons variable_offset_inner_ex(const ExPolygon &expoly, const std::vector<std::vector<float>> …
H A DElephantFootCompensation.cpp48 ExPolygon expoly_grid; in contour_distance()
247 ExPolygon expoly_grid; in contour_distance2()
529 static bool validate_expoly_orientation(const ExPolygon &expoly) in validate_expoly_orientation()
538 ExPolygon elephant_foot_compensation(const ExPolygon &input_expoly, double min_contour_width, const… in elephant_foot_compensation()
550 ExPolygon out; in elephant_foot_compensation()
561 ExPolygon simplified = input_expoly.simplify(SCALED_EPSILON).front(); in elephant_foot_compensation()
569 ExPolygon resampled(simplified); in elephant_foot_compensation()
615 ExPolygon elephant_foot_compensation(const ExPolygon &input, const Flow &external_perimeter_flow,… in elephant_foot_compensation()
626 for (const ExPolygon &expoly : input) in elephant_foot_compensation()
635 for (const ExPolygon &expoly : input) in elephant_foot_compensation()
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/xs/xsp/
H A DExPolygon.xsp5 #include "libslic3r/ExPolygon.hpp"
8 %name{Slic3r::ExPolygon} class ExPolygon {
9 ~ExPolygon();
10 Clone<ExPolygon> clone()
40 ExPolygon*
41 ExPolygon::new(...)
43 RETVAL = new ExPolygon ();
54 ExPolygon::rotate(angle, center_sv)
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/src/libslic3r/SLA/
H A DPad.cpp132 for (ExPolygon &p : ret) { in breakstick_holes()
205 void add(const ExPolygon &ep) in add()
212 bool intersects(const ExPolygon &poly) in intersects()
232 inline void add(const ExPolygon &) {} in add()
343 ExPolygon offset_contour_only(const ExPolygon &poly, coord_t delta, Args...args) in offset_contour_only()
392 for (const ExPolygon &pad_part : skeleton) { in create_outer_pad_geometry()
393 ExPolygon top_poly{pad_part}; in create_outer_pad_geometry()
394 ExPolygon bottom_poly = in create_outer_pad_geometry()
423 for (const ExPolygon &pad_part : skeleton) { in create_inner_pad_geometry()
488 auto tmp = reserve_vector<ExPolygon>(count); in pad_blueprint()
[all …]
H A DSupportPointGenerator.cpp150 for (const ExPolygon &island : islands) { in make_layers()
208 std::vector<std::pair<ExPolygon*, float>> expolys_with_areas; in make_layers()
209 for (ExPolygon &ex : top.overhangs) { in make_layers()
215 … [](const std::pair<ExPolygon*, float> &p1, const std::pair<ExPolygon*, float> &p2) in make_layers()
233 std::vector<std::pair<ExPolygon, coord_t>> islands; in process()
339 std::vector<Vec2f> sample_expolygon(const ExPolygon &expoly, float samples_per_mm2, std::mt19937 &r… in sample_expolygon()
396 for (const ExPolygon &expoly : expolys) in sample_expolygon()
402 void sample_expolygon_boundary(const ExPolygon & expoly, in sample_expolygon_boundary()
429 for (const ExPolygon &expoly : expolys) in sample_expolygon_with_boundary()
611 for (const ExPolygon &island : islands) in uniformly_cover()
[all …]
H A DPad.hpp11 class ExPolygon;
13 using ExPolygons = std::vector<ExPolygon>;
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/tests/fff_print/
H A Dtest_fill.cpp18 bool test_if_solid_surface_filled(const ExPolygon& expolygon, double flow_spacing, double angle = 0…
38 auto test = [&filler, &fill_params] (const ExPolygon& poly) -> Slic3r::Polylines { in __anona10724e50102()
50 Slic3r::Polylines paths = test(Slic3r::ExPolygon(test_set));
66 Slic3r::Polylines paths = test(Slic3r::ExPolygon(test_set));
85 ExPolygon e(test_square, test_hole);
112 Slic3r::Polylines paths = test(Slic3r::ExPolygon(points));
123 Slic3r::ExPolygon expolygon(square);
150 Slic3r::ExPolygon expolygon(points);
178 Slic3r::ExPolygon expolygon(points);
187 Slic3r::ExPolygon expolygon(points);
[all …]
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/t/
H A Dbridges.t21 my $lower = Slic3r::ExPolygon->new(
29 $bridge = Slic3r::ExPolygon->new($bridge);
41 my $bridge = Slic3r::ExPolygon->new(
45 Slic3r::ExPolygon->new(
58 my $bridge = Slic3r::ExPolygon->new(
62 Slic3r::ExPolygon->new(
72 my $bridge = Slic3r::ExPolygon->new(
76 Slic3r::ExPolygon->new(
89 $lower = Slic3r::ExPolygon::Collection->new(@$lower);
H A Dthin.t64 my $expolygon = Slic3r::ExPolygon->new($square, $hole_in_square);
74 my $expolygon = Slic3r::ExPolygon->new(Slic3r::Polygon->new_scale(
84 $expolygon = Slic3r::ExPolygon->new(Slic3r::Polygon->new_scale(
98 my $expolygon = Slic3r::ExPolygon->new(
112 my $expolygon = Slic3r::ExPolygon->new(Slic3r::Polygon->new_scale(
124 my $expolygon = Slic3r::ExPolygon->new(Slic3r::Polygon->new_scale(
139 my $expolygon = Slic3r::ExPolygon->new(Slic3r::Polygon->new(
151 my $expolygon = Slic3r::ExPolygon->new(Slic3r::Polygon->new_scale(
163 my $expolygon = Slic3r::ExPolygon->new(Slic3r::Polygon->new(
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/xs/t/
H A D04_expolygon.t25 my $expolygon = Slic3r::ExPolygon->new($square, $hole_in_square);
87 my $collection = Slic3r::ExPolygon::Collection->new($expolygon->pp, $expolygon2->pp);
91 my $collection2 = Slic3r::ExPolygon::Collection->new($expolygon, $expolygon2);
109 my $expolygon = Slic3r::ExPolygon->new($square);
129 … my $expolygon = Slic3r::ExPolygon->new([ [0,100],[100,0],[200,0],[300,100],[200,200],[100,200] ]);
H A D09_polyline.t97 my $expolygon = Slic3r::ExPolygon->new(Slic3r::Polygon->new(
107 my $expolygon = Slic3r::ExPolygon->new(Slic3r::Polygon->new(
117 my $expolygon = Slic3r::ExPolygon->new(Slic3r::Polygon->new(
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/lib/Slic3r/
H A DExPolygon.pm1 package Slic3r::ExPolygon;
32 package Slic3r::ExPolygon::Collection;
/dports/cad/PrusaSlicer/PrusaSlicer-version_2.3.3/src/libslic3r/Fill/
H A DFillBase.hpp19 class ExPolygon;
124 ExPolygon /* expolygon */, in _fill_surface_single() argument
132 …static void connect_infill(Polylines &&infill_ordered, const ExPolygon &boundary, Polylines &polyl…

12345