Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::LayerIsland Struct Reference

#include <src/libslic3r/Layer.hpp>

+ Collaboration diagram for Slic3r::LayerIsland:

Public Member Functions

bool fill_expolygons_composite () const
 
bool has_extrusions () const
 
void add_fill_range (const LayerExtrusionRange &new_fill_range)
 

Public Attributes

LayerExtrusionRange perimeters
 
ExtrusionRange thin_fills
 
LayerExtrusionRanges fills
 
ExPolygonRange fill_expolygons
 
uint32_t fill_region_id
 

Static Private Attributes

static constexpr const uint32_t fill_region_composite_id = std::numeric_limits<uint32_t>::max()
 

Friends

class Layer
 

Detailed Description

Member Function Documentation

◆ add_fill_range()

void Slic3r::LayerIsland::add_fill_range ( const LayerExtrusionRange new_fill_range)
inline
261 {
262 // Compress ranges.
263 if (! this->fills.empty() && this->fills.back().region() == new_fill_range.region() && *this->fills.back().end() == *new_fill_range.begin())
264 this->fills.back() = { new_fill_range.region(), { *this->fills.back().begin(), *new_fill_range.end() } };
265 else
266 this->fills.push_back(new_fill_range);
267 }
LayerExtrusionRanges fills
Definition Layer.hpp:248

References Slic3r::IndexRange< T >::begin(), Slic3r::IndexRange< T >::end(), and Slic3r::LayerExtrusionRange::region().

+ Here is the call graph for this function:

◆ fill_expolygons_composite()

bool Slic3r::LayerIsland::fill_expolygons_composite ( ) const
inline
255{ return this->fill_region_id == fill_region_composite_id; }
uint32_t fill_region_id
Definition Layer.hpp:254
static constexpr const uint32_t fill_region_composite_id
Definition Layer.hpp:240

References fill_region_composite_id.

Referenced by Slic3r::insert_fills_into_islands(), and Slic3r::Layer::sort_perimeters_into_islands().

+ Here is the caller graph for this function:

◆ has_extrusions()

bool Slic3r::LayerIsland::has_extrusions ( ) const
inline
259{ return ! this->perimeters.empty() || ! this->fills.empty(); }
bool empty() const
Definition Layer.hpp:55
LayerExtrusionRange perimeters
Definition Layer.hpp:244

References Slic3r::IndexRange< T >::empty().

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ Layer

friend class Layer
friend

Member Data Documentation

◆ fill_expolygons

◆ fill_region_composite_id

constexpr const uint32_t Slic3r::LayerIsland::fill_region_composite_id = std::numeric_limits<uint32_t>::max()
staticconstexprprivate

◆ fill_region_id

uint32_t Slic3r::LayerIsland::fill_region_id

◆ fills

LayerExtrusionRanges Slic3r::LayerIsland::fills

◆ perimeters

◆ thin_fills

ExtrusionRange Slic3r::LayerIsland::thin_fills

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