OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::SupportAnnotations Struct Reference
Collaboration diagram for Slic3r::SupportAnnotations:

Public Member Functions

 SupportAnnotations (const PrintObject &object, const std::vector< Polygons > &buildplate_covered)

Public Attributes

std::vector< Polygons > enforcers_layers
std::vector< Polygons > blockers_layers
const std::vector< Polygons > & buildplate_covered

Detailed Description

Constructor & Destructor Documentation

◆ SupportAnnotations()

Slic3r::SupportAnnotations::SupportAnnotations ( const PrintObject & object,
const std::vector< Polygons > & buildplate_covered )
inline
1406 :
1407 enforcers_layers(object.slice_support_enforcers()),
1408 blockers_layers(object.slice_support_blockers()),
1410 {
1411 // Append custom supports.
1412 object.project_and_append_custom_facets(false, EnforcerBlockerType::ENFORCER, enforcers_layers);
1413 object.project_and_append_custom_facets(false, EnforcerBlockerType::BLOCKER, blockers_layers);
1414
1415 // Expand the blocker a bit. Custom blockers produce strips
1416 // spanning just the projection between the two slices.
1417 // Subtracting them as they are may leave unwanted narrow
1418 // residues of diff_polygons that would then be supported.
1419 for (auto& blocker : blockers_layers) {
1420 if (!blocker.empty())
1421 blocker = expand(union_(blocker), float(1000. * SCALED_EPSILON));
1422 }
1423 }
#define SCALED_EPSILON
Definition libslic3r.h:109
Slic3r::Polygons union_(const Slic3r::Polygons &subject)
Definition ClipperUtils.cpp:801
Slic3r::Polygons expand(const Slic3r::Polygon &polygon, const float delta, JoinType joinType=DefaultJoinType, double miterLimit=DefaultMiterLimit)
Definition ClipperUtils.hpp:397
@ ENFORCER
Definition TriangleSelector.hpp:27
@ BLOCKER
Definition TriangleSelector.hpp:28
const std::vector< Polygons > & buildplate_covered
Definition SupportMaterial.cpp:1427
std::vector< Polygons > blockers_layers
Definition SupportMaterial.cpp:1426
std::vector< Polygons > enforcers_layers
Definition SupportMaterial.cpp:1425

References Slic3r::BLOCKER, blockers_layers, buildplate_covered, Slic3r::ENFORCER, enforcers_layers, Slic3r::expand(), SCALED_EPSILON, and Slic3r::union_().

Here is the call graph for this function:

Member Data Documentation

◆ blockers_layers

std::vector<Polygons> Slic3r::SupportAnnotations::blockers_layers

◆ buildplate_covered

const std::vector<Polygons>& Slic3r::SupportAnnotations::buildplate_covered

◆ enforcers_layers

std::vector<Polygons> Slic3r::SupportAnnotations::enforcers_layers

The documentation for this struct was generated from the following file: