mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Improved accuracy of ModelVolume matrix store / restore
into the 3MF / AMF. Improved accuracy of ModelVolume's mesh transform back from Object's coordinate space to its own coordinate space after reloading from 3MF / AMF.
This commit is contained in:
parent
2bf472988b
commit
26b7dbd6f5
5 changed files with 73 additions and 68 deletions
|
@ -360,7 +360,6 @@ public:
|
|||
void set_mirror(Axis axis, double mirror);
|
||||
|
||||
void set_from_transform(const Transform3d& transform);
|
||||
void set_from_string(const std::string& transform_str);
|
||||
|
||||
void reset();
|
||||
|
||||
|
@ -385,6 +384,9 @@ private:
|
|||
}
|
||||
};
|
||||
|
||||
// For parsing a transformation matrix from 3MF / AMF.
|
||||
extern Transform3d transform3d_from_string(const std::string& transform_str);
|
||||
|
||||
// Rotation when going from the first coordinate system with rotation rot_xyz_from applied
|
||||
// to a coordinate system with rot_xyz_to applied.
|
||||
extern Eigen::Quaterniond rotation_xyz_diff(const Vec3d &rot_xyz_from, const Vec3d &rot_xyz_to);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue