Classes | |
| struct | Facestats |
Typedefs | |
| using | XYRotation = std::array<double, 2> |
Functions | |
| std::array< Vec3f, 3 > | get_triangle_vertices (const TriangleMesh &mesh, size_t faceidx) |
| std::array< Vec3f, 3 > | get_transformed_triangle (const TriangleMesh &mesh, const Transform3f &tr, size_t faceidx) |
| template<class T> | |
| Vec< 3, T > | normal (const std::array< Vec< 3, T >, 3 > &tri) |
| template<class T, class AccessFn> | |
| T | sum_score (AccessFn &&accessfn, size_t facecount, size_t Nthreads) |
| double | get_misalginment_score (const TriangleMesh &mesh, const Transform3f &tr) |
| double | get_supportedness_score (const Facestats &fc) |
| double | get_supportedness_score (const TriangleMesh &mesh, const Transform3f &tr) |
| float | find_ground_level (const TriangleMesh &mesh, const Transform3f &tr, size_t threads) |
| float | get_supportedness_onfloor_score (const TriangleMesh &mesh, const Transform3f &tr) |
| Transform3f | to_transform3f (const XYRotation &rot) |
| XYRotation | from_transform3f (const Transform3f &tr) |
| bool | is_on_floor (const SLAPrintObjectConfig &cfg) |
| std::vector< XYRotation > | get_chull_rotations (const TriangleMesh &mesh, size_t max_count) |
| template<size_t N, class Fn, class It, class StopCond> | |
| std::array< double, N > | find_min_score (Fn &&fn, It from, It to, StopCond &&stopfn) |
Variables | |
| const Vec3f | DOWN = {0.f, 0.f, -1.f} |
| constexpr double | POINTS_PER_UNIT_AREA = 1.f |
| using Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::XYRotation = std::array<double, 2> |
| float Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::find_ground_level | ( | const TriangleMesh & | mesh, |
| const Transform3f & | tr, | ||
| size_t | threads ) |
References Slic3r::ex_tbb, find_ground_level(), Slic3r::TriangleMesh::its, and Slic3r::execution::reduce().
Referenced by find_ground_level(), and get_supportedness_onfloor_score().
| std::array< double, N > Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::find_min_score | ( | Fn && | fn, |
| It | from, | ||
| It | to, | ||
| StopCond && | stopfn ) |
References Slic3r::Geometry::dist(), Slic3r::ex_tbb, find_min_score(), and Slic3r::execution::for_each().
Referenced by find_min_score().
| XYRotation Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::from_transform3f | ( | const Transform3f & | tr | ) |
References from_transform3f(), and Slic3r::Geometry::Transformation::get_rotation().
Referenced by from_transform3f(), and get_chull_rotations().
| std::vector< XYRotation > Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::get_chull_rotations | ( | const TriangleMesh & | mesh, |
| size_t | max_count ) |
References Slic3r::area(), Slic3r::Polygon::area(), Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::Facestats::area, Slic3r::TriangleMesh::convex_hull(), Slic3r::TriangleMesh::convex_hull_3d(), DOWN, EPSILON, from_transform3f(), get_chull_rotations(), get_triangle_vertices(), Slic3r::TriangleMesh::its, Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::Facestats::normal, Slic3r::reserve_vector(), Slic3r::scaled(), Slic3r::sla::X, and Slic3r::sla::Y.
Referenced by get_chull_rotations().
| double Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::get_misalginment_score | ( | const TriangleMesh & | mesh, |
| const Transform3f & | tr ) |
References Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::Facestats::area, get_misalginment_score(), get_transformed_triangle(), Slic3r::TriangleMesh::its, Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::Facestats::normal, Slic3r::scaled(), sum_score(), and Slic3r::unscaled().
Referenced by get_misalginment_score().
| float Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::get_supportedness_onfloor_score | ( | const TriangleMesh & | mesh, |
| const Transform3f & | tr ) |
References Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::Facestats::area, find_ground_level(), get_supportedness_onfloor_score(), get_supportedness_score(), get_transformed_triangle(), Slic3r::TriangleMesh::its, POINTS_PER_UNIT_AREA, sum_score(), and Slic3r::unscaled().
Referenced by get_supportedness_onfloor_score().
|
inline |
References Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::Facestats::area, DOWN, get_supportedness_score(), Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::Facestats::normal, PI, and POINTS_PER_UNIT_AREA.
Referenced by get_supportedness_onfloor_score(), get_supportedness_score(), and get_supportedness_score().
| double Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::get_supportedness_score | ( | const TriangleMesh & | mesh, |
| const Transform3f & | tr ) |
References get_supportedness_score(), get_transformed_triangle(), Slic3r::TriangleMesh::its, Slic3r::scaled(), sum_score(), and Slic3r::unscaled().
| std::array< Vec3f, 3 > Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::get_transformed_triangle | ( | const TriangleMesh & | mesh, |
| const Transform3f & | tr, | ||
| size_t | faceidx ) |
References get_transformed_triangle(), and get_triangle_vertices().
Referenced by get_misalginment_score(), get_supportedness_onfloor_score(), get_supportedness_score(), and get_transformed_triangle().
| std::array< Vec3f, 3 > Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::get_triangle_vertices | ( | const TriangleMesh & | mesh, |
| size_t | faceidx ) |
References get_triangle_vertices(), and Slic3r::TriangleMesh::its.
Referenced by get_chull_rotations(), get_transformed_triangle(), and get_triangle_vertices().
|
inline |
References EPSILON, and is_on_floor().
Referenced by is_on_floor().
| Vec< 3, T > Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::normal | ( | const std::array< Vec< 3, T >, 3 > & | tri | ) |
| T Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::sum_score | ( | AccessFn && | accessfn, |
| size_t | facecount, | ||
| size_t | Nthreads ) |
References Slic3r::ex_tbb, Slic3r::execution::reduce(), and sum_score().
Referenced by get_misalginment_score(), get_supportedness_onfloor_score(), get_supportedness_score(), and sum_score().
| Transform3f Slic3r::sla::anonymous_namespace{Rotfinder.cpp}::to_transform3f | ( | const XYRotation & | rot | ) |
References to_transform3f().
Referenced by to_transform3f().
Referenced by get_chull_rotations(), and get_supportedness_score().
|
constexpr |
Referenced by get_supportedness_onfloor_score(), and get_supportedness_score().