mfx-inria / curvislicer

CurviSlicer: Slightly curved slicing for 3-axis printers
GNU Affero General Public License v3.0
215 stars 25 forks source link

Calculate E value #6

Open xuyonglai opened 3 years ago

xuyonglai commented 3 years ago

I find delta_pos is not used, Is that right? why? **float delta_E = B[3] - A[3]; float delta_pos = length(v2f(B) - v2f(A));

float grad = 0.5f grad_z_a + 0.5f grad_z_b; // float grad = max( grad_z_a , grad_z_b );

float new_e = delta_E / grad; total_e += new_e;**