![]() |
Prusa Slicer 2.6.0
|
Keep conversion from ExPolygonsIndex to Index and vice versa ExPolygonsIndex .. contour(or hole) point from ExPolygons Index .. continous number. More...
#include <src/libslic3r/ExPolygonsIndex.hpp>
Collaboration diagram for Slic3r::ExPolygonsIndices:Public Member Functions | |
| ExPolygonsIndices (const ExPolygons &shapes) | |
| uint32_t | cvt (const ExPolygonsIndex &id) const |
| Convert to one index number. | |
| ExPolygonsIndex | cvt (uint32_t index) const |
| Separate to multi index. | |
| bool | is_last_point (const ExPolygonsIndex &id) const |
| Check whether id is last point in polygon. | |
| uint32_t | get_count () const |
| Count of points in expolygons. | |
Private Attributes | |
| std::vector< std::vector< uint32_t > > | m_offsets |
| uint32_t | m_count |
Keep conversion from ExPolygonsIndex to Index and vice versa ExPolygonsIndex .. contour(or hole) point from ExPolygons Index .. continous number.
index is used to address lines and points as result from function Slic3r::to_lines, Slic3r::to_points
| ExPolygonsIndices::ExPolygonsIndices | ( | const ExPolygons & | shapes | ) |
References m_count, m_offsets, Slic3r::offset(), and Slic3r::MultiPoint::points.
Here is the call graph for this function:| uint32_t ExPolygonsIndices::cvt | ( | const ExPolygonsIndex & | id | ) | const |
Convert to one index number.
| id | Compose of adress into expolygons |
References m_count, and m_offsets.
Referenced by priv::choose_best_distance(), priv::collect_close_points(), Slic3r::cut_surface(), Slic3r::Emboss::divide_segments_for_close_point(), priv::fill_shape_distances(), priv::find_close_point(), priv::get_closest_point_index(), priv::is_face_inside(), and priv::select_patches().
Here is the caller graph for this function:| ExPolygonsIndex ExPolygonsIndices::cvt | ( | uint32_t | index | ) | const |
Separate to multi index.
| index | adress into expolygons |
| uint32_t ExPolygonsIndices::get_count | ( | ) | const |
Count of points in expolygons.
References m_count.
Referenced by priv::choose_best_distance(), priv::collect_close_points(), Slic3r::cut_surface(), Slic3r::Emboss::divide_segments_for_close_point(), and priv::find_closest_point_pair().
Here is the caller graph for this function:| bool ExPolygonsIndices::is_last_point | ( | const ExPolygonsIndex & | id | ) | const |
Check whether id is last point in polygon.
| id | Identify point in expolygon |
References m_count, and m_offsets.
Referenced by priv::collect_close_points(), and Slic3r::Emboss::divide_segments_for_close_point().
Here is the caller graph for this function:
|
private |
Referenced by ExPolygonsIndices(), cvt(), cvt(), get_count(), and is_last_point().
|
private |
Referenced by ExPolygonsIndices(), cvt(), cvt(), and is_last_point().