#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/AABBMesh.hpp>
Classes | |
| class | hit_result |
| class | AABBImpl |
Public Member Functions | |
| AABBMesh (const indexed_triangle_set &tmesh, bool calculate_epsilon=false) | |
| AABBMesh (const TriangleMesh &mesh, bool calculate_epsilon=false) | |
| AABBMesh (const AABBMesh &other) | |
| AABBMesh & | operator= (const AABBMesh &) |
| AABBMesh (AABBMesh &&other) | |
| AABBMesh & | operator= (AABBMesh &&other) |
| ~AABBMesh () | |
| const std::vector< Vec3f > & | vertices () const |
| const std::vector< Vec3i32 > & | indices () const |
| const Vec3f & | vertices (size_t idx) const |
| const Vec3i32 & | indices (size_t idx) const |
| hit_result | query_ray_hit (const Vec3d &s, const Vec3d &dir) const |
| std::vector< hit_result > | query_ray_hits (const Vec3d &s, const Vec3d &dir) const |
| double | squared_distance (const Vec3d &p, int &i, Vec3d &c) const |
| double | squared_distance (const Vec3d &p) const |
| Vec3d | normal_by_face_id (int face_id) const |
| const indexed_triangle_set * | get_triangle_mesh () const |
| const VertexFaceIndex & | vertex_face_index () const |
| const std::vector< Vec3i32 > & | face_neighbor_index () const |
Private Member Functions | |
| template<class M> | |
| void | init (const M &mesh, bool calculate_epsilon) |
Private Attributes | |
| const indexed_triangle_set * | m_tm |
| std::unique_ptr< AABBImpl > | m_aabb |
| VertexFaceIndex | m_vfidx |
| std::vector< Vec3i32 > | m_fnidx |
|
explicit |
References init(), Slic3r::its_face_neighbors(), m_aabb, m_fnidx, m_tm, and m_vfidx.
Referenced by AABBMesh(), AABBMesh(), operator=(), and operator=().
|
explicit |
| Slic3r::AABBMesh::AABBMesh | ( | const AABBMesh & | other | ) |
|
default |
| Slic3r::AABBMesh::~AABBMesh | ( | ) |
|
inline |
|
inline |
| const std::vector< Vec3i32 > & Slic3r::AABBMesh::indices | ( | ) | const |
References m_tm.
Referenced by Slic3r::GUI::RaycastManager::first_hit().
| const Vec3i32 & Slic3r::AABBMesh::indices | ( | size_t | idx | ) | const |
|
private |
| Vec3d Slic3r::AABBMesh::normal_by_face_id | ( | int | face_id | ) | const |
References Slic3r::its_unnormalized_normal(), and m_tm.
Referenced by query_ray_hit(), and query_ray_hits().
| AABBMesh::hit_result Slic3r::AABBMesh::query_ray_hit | ( | const Vec3d & | s, |
| const Vec3d & | dir ) const |
References Slic3r::is_approx(), m_aabb, Slic3r::AABBMesh::hit_result::m_dir, Slic3r::AABBMesh::hit_result::m_face_id, Slic3r::AABBMesh::hit_result::m_normal, Slic3r::AABBMesh::hit_result::m_source, Slic3r::AABBMesh::hit_result::m_t, m_tm, normal_by_face_id(), and query_ray_hits().
Referenced by Slic3r::GUI::GLGizmoCut3D::PartSelection::PartSelection().
| std::vector< AABBMesh::hit_result > Slic3r::AABBMesh::query_ray_hits | ( | const Vec3d & | s, |
| const Vec3d & | dir ) const |
References m_aabb, m_tm, and normal_by_face_id().
Referenced by Slic3r::GUI::RaycastManager::closest_hit(), Slic3r::GUI::RaycastManager::first_hit(), and query_ray_hit().
|
inline |
References squared_distance().
Referenced by Slic3r::GUI::RaycastManager::closest(), and squared_distance().
|
inline |
| const std::vector< Vec3f > & Slic3r::AABBMesh::vertices | ( | ) | const |
References m_tm.
Referenced by Slic3r::GUI::RaycastManager::first_hit().
| const Vec3f & Slic3r::AABBMesh::vertices | ( | size_t | idx | ) | const |
|
private |
Referenced by AABBMesh(), AABBMesh(), AABBMesh(), init(), operator=(), query_ray_hit(), query_ray_hits(), and squared_distance().
|
private |
Referenced by AABBMesh(), AABBMesh(), AABBMesh(), face_neighbor_index(), and operator=().
|
private |
Referenced by AABBMesh(), AABBMesh(), AABBMesh(), get_triangle_mesh(), indices(), indices(), init(), normal_by_face_id(), operator=(), query_ray_hit(), query_ray_hits(), squared_distance(), vertices(), and vertices().
|
private |
Referenced by AABBMesh(), AABBMesh(), AABBMesh(), operator=(), and vertex_face_index().