add triangle fill

This commit is contained in:
Stewart Allen 2019-05-02 21:52:54 -04:00
commit e2dc9541bb
5 changed files with 96 additions and 21 deletions

View file

@ -390,7 +390,9 @@ var gs_kiri_slice = exports;
opt = options || {};
slice.tops.forEach(function(top) {
if (opt.vase) top.poly = top.poly.clone(false);
if (opt.vase) {
top.poly = top.poly.clone(false);
}
// top.thinner = [];
top.traces = [];
top.inner = [];
@ -617,6 +619,7 @@ var gs_kiri_slice = exports;
line = [],
// callback passed to pluggable infill algorithm
target = {
lineWidth: function() { return options.lineWidth },
bounds: function() { return bounds },
zIndex: function() { return scope.index },
zValue: function() { return scope.z },