![]() |
Prusa Slicer 2.6.0
|
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 <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 libnest2d::RotatedBox< Pt, Unit >::axis(), libnest2d::RotatedBox< Pt, Unit >::bottom_extent(), m_axis, m_bottom, m_right, Slic3r::minAreaBoundigBox_(), and libnest2d::RotatedBox< Pt, Unit >::right_extent().
Here is the call graph for this function:
|
explicit |
References libnest2d::RotatedBox< Pt, Unit >::axis(), libnest2d::RotatedBox< Pt, Unit >::bottom_extent(), m_axis, m_bottom, m_right, Slic3r::minAreaBoundigBox_(), and libnest2d::RotatedBox< Pt, Unit >::right_extent().
Here is the call graph for this function:
|
explicit |
References libnest2d::RotatedBox< Pt, Unit >::axis(), libnest2d::RotatedBox< Pt, Unit >::bottom_extent(), m_axis, m_bottom, m_right, Slic3r::minAreaBoundigBox_(), and libnest2d::RotatedBox< Pt, Unit >::right_extent().
Here is the call graph for this function:| double Slic3r::MinAreaBoundigBox::angle_to_X | ( | ) | const |
Referenced by Slic3r::GUI::RotoptimizeJob::finalize().
Here is the caller graph for this function:| long double Slic3r::MinAreaBoundigBox::area | ( | ) | const |
| long double Slic3r::MinAreaBoundigBox::height | ( | ) | const |
References m_axis, and m_right.
Referenced by Slic3r::GUI::RotoptimizeJob::finalize().
Here is the caller graph for this function:| long double Slic3r::MinAreaBoundigBox::width | ( | ) | const |
References m_axis, and m_bottom.
Referenced by Slic3r::GUI::RotoptimizeJob::finalize().
Here is the caller graph for this function:
|
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().