fix visible field options, refining = 0, mesh display values

This commit is contained in:
Stewart Allen 2022-10-10 21:32:45 -04:00
commit 27468f953c
3 changed files with 7 additions and 6 deletions

View file

@ -1103,10 +1103,10 @@ class OpPocket extends CamOp {
}
// mold cam output lines to the surface of the topo offset by tool geometry
conform(camLines, refine = 10, engrave) {
conform(camLines, refine, engrave) {
const topo = this.topo;
// re-segment polygon to a higher resolution
const hirez = camLines.map(p => p.segment(topo.tolerance * 2));
const hirez = refine > 0 ? camLines.map(p => p.segment(topo.tolerance * 2)) : camLines;
// walk points and offset from surface taking into account tool geometry
for (let poly of hirez) {
for (let point of poly.points) {