mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -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
|
@ -607,7 +607,7 @@ int generate_layer_height_texture(
|
|||
// Intensity profile to visualize the layers.
|
||||
coordf_t intensity = cos(M_PI * 0.7 * (mid - z) / h);
|
||||
// Color mapping from layer height to RGB.
|
||||
Pointf3 color(
|
||||
Vec3d color(
|
||||
intensity * lerp(coordf_t(color1(0)), coordf_t(color2(0)), t),
|
||||
intensity * lerp(coordf_t(color1(1)), coordf_t(color2(1)), t),
|
||||
intensity * lerp(coordf_t(color1(2)), coordf_t(color2(2)), t));
|
||||
|
@ -639,7 +639,7 @@ int generate_layer_height_texture(
|
|||
const Point3 &color1 = palette_raw[idx1];
|
||||
const Point3 &color2 = palette_raw[idx2];
|
||||
// Color mapping from layer height to RGB.
|
||||
Pointf3 color(
|
||||
Vec3d color(
|
||||
lerp(coordf_t(color1(0)), coordf_t(color2(0)), t),
|
||||
lerp(coordf_t(color1(1)), coordf_t(color2(1)), t),
|
||||
lerp(coordf_t(color1(2)), coordf_t(color2(2)), t));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue