mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-14 12:23:03 +01:00
disable creation of an approximated curve for Arcs
This commit is contained in:
parent
534d57461f
commit
c96a9f2b40
1 changed files with 5 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue