curves-only fix to handle small epsilon in flat face vertices
This commit is contained in:
parent
d693212ce5
commit
904c600552
3 changed files with 6 additions and 6 deletions
|
|
@ -292,8 +292,8 @@
|
||||||
(Math.pow(pos.Y - lastPos.Y, 2))
|
(Math.pow(pos.Y - lastPos.Y, 2))
|
||||||
);
|
);
|
||||||
let dR = (dE / dV); // filament per mm
|
let dR = (dE / dV); // filament per mm
|
||||||
if (dR < 0.025 || dR > 0.35) {
|
if (dV > 2 && dE > 0.001 && (dR < 0.025 || dR > 0.35)) {
|
||||||
console.log(height.round(2), pos.Z.round(2), dV.round(2), dR.round(3));
|
console.log(height.toFixed(2), dV.toFixed(2), dE.toFixed(3), dR.toFixed(5));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// add point to current sequence
|
// add point to current sequence
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@
|
||||||
function push_point(x,y,z) {
|
function push_point(x,y,z) {
|
||||||
const newP = newPoint(x,y,z);
|
const newP = newPoint(x,y,z);
|
||||||
// todo: merge co-linear, not just co-planar
|
// todo: merge co-linear, not just co-planar
|
||||||
if (lastP && lastP.z === z) {
|
if (lastP && Math.abs(lastP.z - z) < 0.005) {
|
||||||
if (curvesOnly) {
|
if (curvesOnly) {
|
||||||
end_poly();
|
end_poly();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -599,7 +599,7 @@ kiri.lang['en-us'] = {
|
||||||
ag_nozl_s: "nozzle",
|
ag_nozl_s: "nozzle",
|
||||||
ag_nozl_l: "select output nozzle or head",
|
ag_nozl_l: "select output nozzle or head",
|
||||||
ag_peel_s: "peel guard",
|
ag_peel_s: "peel guard",
|
||||||
ag_peel_l: ["starting at this belt z positoin","periodically roll the print off and","back on to the belt to unstick it","and prevent rolling deflection"],
|
ag_peel_l: ["starting at this belt z position","periodically roll the print off and","back on to the belt to unstick it","and prevent rolling deflection"],
|
||||||
ag_paws_s: "pause layers",
|
ag_paws_s: "pause layers",
|
||||||
ag_paws_l: ["comma-separated list of layers","to inject pause commands before"],
|
ag_paws_l: ["comma-separated list of layers","to inject pause commands before"],
|
||||||
// ag_loop_s: "loop layers",
|
// ag_loop_s: "loop layers",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue