Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::MonotonicRegion Struct Reference
+ Collaboration diagram for Slic3r::MonotonicRegion:

Classes

struct  Boundary
 

Public Member Functions

float length (bool region_flipped) const
 
int left_intersection_point (bool region_flipped) const
 
int right_intersection_point (bool region_flipped) const
 

Public Attributes

Boundary left
 
Boundary right
 
float len1 { 0.f }
 
float len2 { 0.f }
 
bool flips { false }
 
std::vector< MonotonicRegion * > left_neighbors
 
std::vector< MonotonicRegion * > right_neighbors
 

Detailed Description


Class Documentation

◆ Slic3r::MonotonicRegion::Boundary

struct Slic3r::MonotonicRegion::Boundary
Class Members
int high
int low
int vline

Member Function Documentation

◆ left_intersection_point()

int Slic3r::MonotonicRegion::left_intersection_point ( bool  region_flipped) const
inline
1608{ return region_flipped ? left.high : left.low; }
Boundary left
Definition FillRectilinear.cpp:1596
int high
Definition FillRectilinear.cpp:1593
int low
Definition FillRectilinear.cpp:1592

References Slic3r::MonotonicRegion::Boundary::high, left, and Slic3r::MonotonicRegion::Boundary::low.

Referenced by Slic3r::montonous_region_path_length(), Slic3r::AntPathMatrix::operator()(), and Slic3r::polylines_from_paths().

+ Here is the caller graph for this function:

◆ length()

float Slic3r::MonotonicRegion::length ( bool  region_flipped) const
inline
1607{ return region_flipped ? len2 : len1; }
float len2
Definition FillRectilinear.cpp:1602
float len1
Definition FillRectilinear.cpp:1600

References len1, and len2.

Referenced by Slic3r::chain_monotonic_regions().

+ Here is the caller graph for this function:

◆ right_intersection_point()

int Slic3r::MonotonicRegion::right_intersection_point ( bool  region_flipped) const
inline
1609{ return (region_flipped == flips) ? right.low : right.high; }
bool flips
Definition FillRectilinear.cpp:1605
Boundary right
Definition FillRectilinear.cpp:1597

References flips, Slic3r::MonotonicRegion::Boundary::high, Slic3r::MonotonicRegion::Boundary::low, and right.

Referenced by Slic3r::AntPathMatrix::operator()(), and Slic3r::polylines_from_paths().

+ Here is the caller graph for this function:

Member Data Documentation

◆ flips

bool Slic3r::MonotonicRegion::flips { false }

◆ left

◆ left_neighbors

std::vector<MonotonicRegion*> Slic3r::MonotonicRegion::left_neighbors

◆ len1

float Slic3r::MonotonicRegion::len1 { 0.f }

Referenced by length().

◆ len2

float Slic3r::MonotonicRegion::len2 { 0.f }

Referenced by length().

◆ right

◆ right_neighbors

std::vector<MonotonicRegion*> Slic3r::MonotonicRegion::right_neighbors

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