add multi-colored paths within the same geometry

This commit is contained in:
Stewart Allen 2020-11-09 00:00:57 -05:00
commit 50c51084a6
9 changed files with 84 additions and 37 deletions

View file

@ -114,13 +114,8 @@
lines: encodePointArray(layer.lines, state),
faces: codec.allocFloat32Array(layer.faces),
color: layer.color,
paths: layer.paths.map(path => {
return {
index: path.index,
faces: path.faces,
z: path.z
}
})
paths: layer.paths,
cpath: layer.cpath
} })
};
return enc;
@ -134,7 +129,8 @@
lines: decodePointArray(v.data[i].lines),
faces: v.data[i].faces,
color: v.data[i].color,
paths: v.data[i].paths
paths: v.data[i].paths,
cpath: v.data[i].cpath
};
}
return render;