notes and debugging

This commit is contained in:
Stewart Allen 2020-11-14 16:30:43 -05:00
commit 98fe0cf9c0
2 changed files with 17 additions and 1 deletions

View file

@ -10,7 +10,8 @@
* onshape mouse mapping option
## 2.4
* cnc: tracing, visualization, manual tabs, auto feature detection (slicing)
* cnc: tracing (chamfer, engrave), milling visualization
* cnc: auto feature detection (slicing), manual tabs
* fdm: manual supports, continuous printing
* all: 2d image to 3d part

View file

@ -158,6 +158,21 @@
gridv, // value
i, il, j, jl, x, y, tv, ltv;
if (false)
slices.map(slice => {
newslices.push(slice);
const points = [];
slice.lines.forEach(line => {
if (line.p1.z > 0 || line.p2.z > 0)
points.push(line.p1, line.p2);
});
slice.output()
.setLayer("topo slices", {face: 0xff00ff, line: 0xff00ff})
.addLines(points)
// .addPolys(slice.topPolys())
;
});
// for each Y slice, find z grid value (x/z swapped)
for (j=0, jl=slices.length; j<jl; j++) {
const slice = slices[j];