Keep conversion from ExPolygonsIndex to Index and vice versa ExPolygonsIndex .. contour(or hole) point from ExPolygons Index .. continous number. More...
#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/ExPolygonsIndex.hpp>
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.
| 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(), Slic3r::cut_surface(), Slic3r::Emboss::divide_segments_for_close_point(), priv::fill_shape_distances(), priv::find_close_point(), priv::find_closest_point_index(), priv::get_closest_point_index(), anonymous_namespace{Emboss.cpp}::heal_dupl_inter(), priv::is_face_inside(), anonymous_namespace{TextLines.cpp}::select_closest_contour(), and priv::select_patches().
| ExPolygonsIndex ExPolygonsIndices::cvt | ( | uint32_t | index | ) | const |
Separate to multi index.
| index | adress into expolygons |
References Slic3r::ExPolygonsIndex::expolygons_index, m_count, m_offsets, Slic3r::ExPolygonsIndex::point_index, and Slic3r::ExPolygonsIndex::polygon_index.
| uint32_t ExPolygonsIndices::get_count | ( | ) | const |
Count of points in expolygons.
References m_count.
Referenced by priv::choose_best_distance(), Slic3r::cut_surface(), Slic3r::Emboss::divide_segments_for_close_point(), and priv::find_closest_point_pair().
| 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 Slic3r::Emboss::divide_segments_for_close_point().
|
private |
Referenced by ExPolygonsIndices(), cvt(), cvt(), get_count(), and is_last_point().
|
private |
Referenced by ExPolygonsIndices(), cvt(), cvt(), and is_last_point().