mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -06:00
Calculating the transformations is now only performed by the MeshClipper
Attempted to get mirroring right (that never worked correctly with the clipping plane in the sla gizmo) The transformation of the support mesh is kind of a mystery to me, hopefully it is right Also cleaned the code a bit (removed commented-out code, unused variables, etc)
This commit is contained in:
parent
546917830b
commit
9782701dd4
4 changed files with 85 additions and 117 deletions
|
@ -13,17 +13,16 @@ public:
|
|||
void set_mesh(const TriangleMesh& mesh);
|
||||
void set_transformation(const Geometry::Transformation& trafo);
|
||||
|
||||
const std::vector<Vec2f>& get_triangles();
|
||||
const std::vector<Vec3f>& get_triangles();
|
||||
|
||||
private:
|
||||
void recalculate_triangles();
|
||||
std::pair<Vec3f, float> get_mesh_cut_normal() const;
|
||||
|
||||
|
||||
Geometry::Transformation m_trafo;
|
||||
const TriangleMesh* m_mesh = nullptr;
|
||||
ClippingPlane m_plane;
|
||||
std::vector<Vec2f> m_triangles;
|
||||
std::vector<Vec2f> m_triangles2d;
|
||||
std::vector<Vec3f> m_triangles3d;
|
||||
bool m_triangles_valid = false;
|
||||
std::unique_ptr<TriangleMeshSlicer> m_tms;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue