OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::PerimeterGeneratorLoop Class Reference
Collaboration diagram for Slic3r::PerimeterGeneratorLoop:

Public Member Functions

 PerimeterGeneratorLoop (const Polygon &polygon, unsigned short depth, bool is_contour, bool is_small_width_perimeter=false)
bool is_external () const
bool is_internal_contour () const

Public Attributes

Polygon polygon
bool is_contour
bool is_smaller_width_perimeter
unsigned short depth
bool is_thin_wall_hole = false
bool is_narrow_wall_hole = false
std::vector< PerimeterGeneratorLoop > children

Detailed Description

Constructor & Destructor Documentation

◆ PerimeterGeneratorLoop()

Slic3r::PerimeterGeneratorLoop::PerimeterGeneratorLoop ( const Polygon & polygon,
unsigned short depth,
bool is_contour,
bool is_small_width_perimeter = false )
inline
76 :
bool is_smaller_width_perimeter
Definition PerimeterGenerator.cpp:63
bool is_contour
Definition PerimeterGenerator.cpp:61
unsigned short depth
Definition PerimeterGenerator.cpp:65
Polygon polygon
Definition PerimeterGenerator.cpp:59

References depth, is_contour, is_smaller_width_perimeter, and polygon.

Referenced by is_internal_contour().

Here is the caller graph for this function:

Member Function Documentation

◆ is_external()

bool Slic3r::PerimeterGeneratorLoop::is_external ( ) const
inline
79{ return this->depth == 0; }

◆ is_internal_contour()

bool Slic3r::PerimeterGeneratorLoop::is_internal_contour ( ) const
3077{
3078 // An internal contour is a contour containing no other contours
3079 if (! this->is_contour)
3080 return false;
3081 for (const PerimeterGeneratorLoop &loop : this->children)
3082 if (loop.is_contour)
3083 return false;
3084 return true;
3085}
PerimeterGeneratorLoop(const Polygon &polygon, unsigned short depth, bool is_contour, bool is_small_width_perimeter=false)
Definition PerimeterGenerator.cpp:76
std::vector< PerimeterGeneratorLoop > children
Definition PerimeterGenerator.cpp:74

References PerimeterGeneratorLoop(), children, is_contour, and is_internal_contour().

Referenced by is_internal_contour().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ children

std::vector<PerimeterGeneratorLoop> Slic3r::PerimeterGeneratorLoop::children

◆ depth

unsigned short Slic3r::PerimeterGeneratorLoop::depth

◆ is_contour

bool Slic3r::PerimeterGeneratorLoop::is_contour

◆ is_narrow_wall_hole

bool Slic3r::PerimeterGeneratorLoop::is_narrow_wall_hole = false

◆ is_smaller_width_perimeter

bool Slic3r::PerimeterGeneratorLoop::is_smaller_width_perimeter

Referenced by PerimeterGeneratorLoop().

◆ is_thin_wall_hole

bool Slic3r::PerimeterGeneratorLoop::is_thin_wall_hole = false

Referenced by Slic3r::traverse_loops().

◆ polygon

Polygon Slic3r::PerimeterGeneratorLoop::polygon

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