comment out console logs
This commit is contained in:
parent
4b52642cbe
commit
5c45f86f25
2 changed files with 7 additions and 7 deletions
|
|
@ -129,7 +129,7 @@ export class OpHelical extends CamOp {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log({down,toBottom,ofFull,ofCircle,finalAngle,finalEnd});
|
// console.log({down,toBottom,ofFull,ofCircle,finalAngle,finalEnd});
|
||||||
|
|
||||||
//circle down to final point
|
//circle down to final point
|
||||||
poly.addPoints(
|
poly.addPoints(
|
||||||
|
|
|
||||||
|
|
@ -808,8 +808,8 @@ export function prepEach(widget, settings, print, firstPoint, update) {
|
||||||
}
|
}
|
||||||
|
|
||||||
let endDelta = e1.distTo2D(e3)
|
let endDelta = e1.distTo2D(e3)
|
||||||
if(endDelta < 0.1){
|
if(endDelta < 0.01){
|
||||||
console.log("circleCompleteFault")
|
// console.log("circleCompleteFault")
|
||||||
drainQ(true)
|
drainQ(true)
|
||||||
return e3
|
return e3
|
||||||
}
|
}
|
||||||
|
|
@ -851,7 +851,7 @@ export function prepEach(widget, settings, print, firstPoint, update) {
|
||||||
// if point is off-center, or too far from center, or too large of a radius
|
// if point is off-center, or too far from center, or too large of a radius
|
||||||
if (dc * arcQ.center.length / arcQ.rSum > arcTolerance || dist > cc.r || cc.r > arcMax || radFault || zFault) {
|
if (dc * arcQ.center.length / arcQ.rSum > arcTolerance || dist > cc.r || cc.r > arcMax || radFault || zFault) {
|
||||||
// let debug = [ dc * arcQ.center.length / arcQ.rSum > arcTolerance, dist > cc.r, cc.r > arcMax, radFault];
|
// let debug = [ dc * arcQ.center.length / arcQ.rSum > arcTolerance, dist > cc.r, cc.r > arcMax, radFault];
|
||||||
console.log("point off the arc,",structuredClone(arcQ),radFault,zFault,[dc * arcQ.center.length / arcQ.rSum > arcTolerance , dist > cc.r , cc.r > arcMax]);
|
// console.log("point off the arc,",structuredClone(arcQ),radFault,zFault,[dc * arcQ.center.length / arcQ.rSum > arcTolerance , dist > cc.r , cc.r > arcMax]);
|
||||||
if (arcQ.length === 4) {
|
if (arcQ.length === 4) {
|
||||||
// not enough points for an arc, drop first point and recalc center
|
// not enough points for an arc, drop first point and recalc center
|
||||||
camOut(arcQ.shift(), 1);
|
camOut(arcQ.shift(), 1);
|
||||||
|
|
@ -904,7 +904,7 @@ export function prepEach(widget, settings, print, firstPoint, update) {
|
||||||
* @param {boolean} forceCircle emits a single circle iven if poly is not closed.
|
* @param {boolean} forceCircle emits a single circle iven if poly is not closed.
|
||||||
*/
|
*/
|
||||||
function drainQ(forceCircle = false) {
|
function drainQ(forceCircle = false) {
|
||||||
console.trace("draining")
|
// console.trace("draining")
|
||||||
let arcPreviewRes = 64
|
let arcPreviewRes = 64
|
||||||
|
|
||||||
if (!arcTolerance) {
|
if (!arcTolerance) {
|
||||||
|
|
@ -941,7 +941,7 @@ export function prepEach(widget, settings, print, firstPoint, update) {
|
||||||
let arcPoints = arcToPath(from, to, arcPreviewRes, { clockwise, center })
|
let arcPoints = arcToPath(from, to, arcPreviewRes, { clockwise, center })
|
||||||
.map(applyWidgetMovement);
|
.map(applyWidgetMovement);
|
||||||
|
|
||||||
console.log({arcPoints})
|
// console.log({arcPoints})
|
||||||
|
|
||||||
camOut(from, 1);
|
camOut(from, 1);
|
||||||
camOut(to, gc, { center: center.sub(from), clockwise, arcPoints });
|
camOut(to, gc, { center: center.sub(from), clockwise, arcPoints });
|
||||||
|
|
@ -949,7 +949,7 @@ export function prepEach(widget, settings, print, firstPoint, update) {
|
||||||
//if a non-circle arc
|
//if a non-circle arc
|
||||||
let arcPoints = arcToPath(from, to, arcPreviewRes, { clockwise, center })
|
let arcPoints = arcToPath(from, to, arcPreviewRes, { clockwise, center })
|
||||||
.map(applyWidgetMovement);
|
.map(applyWidgetMovement);
|
||||||
console.log("arc")
|
// console.log("arc")
|
||||||
// first arc point
|
// first arc point
|
||||||
camOut(from, 1);
|
camOut(from, 1);
|
||||||
// rest of arc to final point
|
// rest of arc to final point
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue