Public Member Functions | |
| NearestPoints (const std::vector< Vec2d > &points) | |
| template<typename Filter> | |
| std::array< size_t, K > | query (const Vec2d &q, Filter filter) const |
Static Public Attributes | |
| static constexpr size_t | npos = size_t(-1) |
Private Member Functions | |
| size_t | cell (const Vec2d &p) const |
Private Attributes | |
| const std::vector< Vec2d > & | m_points |
| Vec2d | m_origin |
| double | m_cell |
| int | m_cols |
| int | m_rows |
| std::vector< size_t > | m_first |
| std::vector< size_t > | m_index |
|
inlineexplicit |
References cell(), count, m_cell, m_cols, m_first, m_index, m_origin, m_points, m_rows, Slic3r::BoundingBoxBase< PointType, APointsType >::merge(), Slic3r::BoundingBoxBase< PointType, APointsType >::min, and Slic3r::BoundingBoxBase< PointType, APointsType >::size().
|
inlineprivate |
References m_cell, m_cols, m_origin, and m_rows.
Referenced by NearestPoints().
|
inline |
References m_cell, m_cols, m_first, m_index, m_origin, m_points, m_rows, npos, and Slic3r::sqr().
Referenced by Slic3r::chain_nearest_next(), and Slic3r::improve_chain_by_local_search().
|
private |
Referenced by NearestPoints(), cell(), and query().
|
private |
Referenced by NearestPoints(), cell(), and query().
|
private |
Referenced by NearestPoints(), and query().
|
private |
Referenced by NearestPoints(), and query().
|
private |
Referenced by NearestPoints(), cell(), and query().
|
private |
Referenced by NearestPoints(), and query().
|
private |
Referenced by NearestPoints(), cell(), and query().
|
staticconstexpr |
Referenced by Slic3r::improve_chain_by_local_search(), Slic3r::improve_cycle_by_or_opt(), and query().