smoother animation

This commit is contained in:
Stewart Allen 2020-04-15 09:51:21 -04:00
commit b9f2df0c4b
7 changed files with 44 additions and 39 deletions

View file

@ -773,11 +773,19 @@ let gs_kiri_slice = exports;
* Used to calculate bridges, flats and then solid projections.
* 'expand' is used for top offsets in SLA mode
*/
PRO.doDiff = function(minArea, expand) {
if (!this.down) return;
PRO.doDiff = function(minArea, expand, fakedown) {
let down = this.down;
if (!down) {
if (fakedown) {
down = newSlice(-1);
} else {
return;
}
}
let top = this,
bottom = this.down;
bottom = down;
top.bridges = null;
bottom.flats = null;