mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 08:41:11 -06:00
Method selection implemented
This commit is contained in:
parent
4eb13a407f
commit
0194094afa
6 changed files with 181 additions and 18 deletions
|
@ -92,9 +92,9 @@ Transform3f to_transform3f(const XYRotation &rot)
|
|||
|
||||
} // namespace
|
||||
|
||||
Vec2d find_best_rotation(const SLAPrintObject & po,
|
||||
float accuracy,
|
||||
std::function<bool(int)> statuscb)
|
||||
Vec2d find_best_misalignment_rotation(const SLAPrintObject & po,
|
||||
float accuracy,
|
||||
std::function<bool(int)> statuscb)
|
||||
{
|
||||
static const unsigned MAX_TRIES = 1000;
|
||||
|
||||
|
@ -156,12 +156,4 @@ Vec2d find_best_rotation(const SLAPrintObject & po,
|
|||
return {rot[0], rot[1]};
|
||||
}
|
||||
|
||||
double get_model_supportedness(const SLAPrintObject &po, const Transform3f &tr)
|
||||
{
|
||||
TriangleMesh mesh = po.model_object()->raw_mesh();
|
||||
mesh.require_shared_vertices();
|
||||
|
||||
return get_model_supportedness(mesh, tr);
|
||||
}
|
||||
|
||||
}} // namespace Slic3r::sla
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue