mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 04:37:52 -06:00
Completely replaced the homebrew Pointf3 class with Eigen Vec3d.
Replaced the unscale macro with a template, implemented templates for unscaling Eigen vectors.
This commit is contained in:
parent
c5256bdd2c
commit
cb138a20b8
46 changed files with 329 additions and 373 deletions
|
@ -81,13 +81,13 @@ public:
|
|||
class Linef3
|
||||
{
|
||||
public:
|
||||
Linef3() {}
|
||||
explicit Linef3(Pointf3 _a, Pointf3 _b): a(_a), b(_b) {}
|
||||
Pointf3 intersect_plane(double z) const;
|
||||
Linef3() : a(0., 0., 0.), b(0., 0., 0.) {}
|
||||
explicit Linef3(Vec3d _a, Vec3d _b): a(_a), b(_b) {}
|
||||
Vec3d intersect_plane(double z) const;
|
||||
void scale(double factor) { this->a *= factor; this->b *= factor; }
|
||||
|
||||
Pointf3 a;
|
||||
Pointf3 b;
|
||||
Vec3d a;
|
||||
Vec3d b;
|
||||
};
|
||||
|
||||
} // namespace Slic3r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue