A class that holds a rotated bounding box. If instantiated with a polygon type it will hold the minimum area bounding box for the given polygon. If the input polygon is convex, the complexity is linear to the number of points. Otherwise a convex hull of O(n*log(n)) has to be performed. More...
#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/MinAreaBoundingBox.hpp>
Public Types | |
| enum | PolygonLevel { pcConvex , pcSimple } |
Public Member Functions | |
| MinAreaBoundigBox (const Polygon &, PolygonLevel=pcSimple) | |
| MinAreaBoundigBox (const ExPolygon &, PolygonLevel=pcSimple) | |
| MinAreaBoundigBox (const Points &, PolygonLevel=pcSimple) | |
| double | angle_to_X () const |
| long double | width () const |
| long double | height () const |
| long double | area () const |
| const Point & | axis () const |
Private Attributes | |
| Point | m_axis |
| long double | m_bottom = 0.0l |
| long double | m_right = 0.0l |
A class that holds a rotated bounding box. If instantiated with a polygon type it will hold the minimum area bounding box for the given polygon. If the input polygon is convex, the complexity is linear to the number of points. Otherwise a convex hull of O(n*log(n)) has to be performed.
|
explicit |
References m_axis, m_bottom, m_right, and Slic3r::minAreaBoundigBox_().
|
explicit |
References m_axis, m_bottom, m_right, and Slic3r::minAreaBoundigBox_().
|
explicit |
References m_axis, m_bottom, m_right, and Slic3r::minAreaBoundigBox_().
| double Slic3r::MinAreaBoundigBox::angle_to_X | ( | ) | const |
Referenced by Slic3r::GUI::RotoptimizeJob::finalize().
| long double Slic3r::MinAreaBoundigBox::area | ( | ) | const |
|
inline |
| long double Slic3r::MinAreaBoundigBox::height | ( | ) | const |
References m_axis, and m_right.
Referenced by Slic3r::GUI::RotoptimizeJob::finalize().
| long double Slic3r::MinAreaBoundigBox::width | ( | ) | const |
References m_axis, and m_bottom.
Referenced by Slic3r::GUI::RotoptimizeJob::finalize().
|
private |
Referenced by MinAreaBoundigBox(), MinAreaBoundigBox(), MinAreaBoundigBox(), angle_to_X(), area(), axis(), height(), and width().
|
private |
Referenced by MinAreaBoundigBox(), MinAreaBoundigBox(), MinAreaBoundigBox(), area(), and width().
|
private |
Referenced by MinAreaBoundigBox(), MinAreaBoundigBox(), MinAreaBoundigBox(), area(), and height().