Skip to content

Commit

Permalink
Circle end point tolerance increased
Browse files Browse the repository at this point in the history
  • Loading branch information
staniska committed May 26, 2021
1 parent 859e079 commit 21645f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interpretator.js
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@ function generateCanvasPrimitives(primitives, programName, row) {

var vectorStart = (coordsInFrame[circleAxes[0]] - move[circleCenterAxes[0]]) ** 2 + (coordsInFrame[circleAxes[1]] - move[circleCenterAxes[1]]) ** 2;
var vectorEnd = (canvasElement[circleAxes[0]] - move[circleCenterAxes[0]]) ** 2 + (canvasElement[circleAxes[1]] - move[circleCenterAxes[1]]) ** 2;
if (Math.abs(vectorEnd-vectorStart) > 3e-2) {
if (Math.abs(Math.sqrt(vectorEnd) - Math.sqrt(vectorStart)) > 3e-2) {
View.sinumerikView.parseData.errors.push({text:`Circle end point error. prog ${programName} row ${row + 1}`, row: row});
circleError = 1;
}
Expand Down

0 comments on commit 21645f2

Please sign in to comment.