From c96a9f2b4080b59dbd8fb7315a377e9a4189562e Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Mon, 10 Apr 2017 21:58:49 -0700 Subject: [PATCH] disable creation of an approximated curve for Arcs --- web/app/3d/craft/sketch/sketch-model.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/app/3d/craft/sketch/sketch-model.js b/web/app/3d/craft/sketch/sketch-model.js index f80bc5c4..93349174 100644 --- a/web/app/3d/craft/sketch/sketch-model.js +++ b/web/app/3d/craft/sketch/sketch-model.js @@ -177,6 +177,9 @@ export class Ellipse extends SketchPrimitive { } } +const USE_APPROX_FOR = new Set(); +//USE_APPROX_FOR.add('Arc'); + export class Contour { constructor() { @@ -214,8 +217,8 @@ export class Contour { if (segIdx == this.segments.length - 1) { approximation[n - 1] = firstPoint; } - - if (!forceApproximation && segment.constructor.name == 'Arc') { + + if (!forceApproximation && USE_APPROX_FOR.has(segment.constructor.name)) { cc.add(new ApproxCurve(approximation, segment), prev, segment); prev = approximation[n - 1]; } else {