mirror of
https://github.com/xibyte/jsketcher
synced 2026-01-02 13:56:13 +01:00
NURBS support for circles
This commit is contained in:
parent
5d71132d80
commit
898cd156bf
1 changed files with 7 additions and 0 deletions
|
|
@ -199,6 +199,12 @@ export class Circle extends SketchPrimitive {
|
|||
points.push(points[0]); // close it
|
||||
return points;
|
||||
}
|
||||
|
||||
|
||||
toVerbNurbs(plane, _3dtr) {
|
||||
const basis = plane.basis();
|
||||
return new verb.geom.Circle(_3dtr(this.c).data(), basis[0].data(), basis[1].data(), this.r);
|
||||
}
|
||||
}
|
||||
|
||||
export class Ellipse extends SketchPrimitive {
|
||||
|
|
@ -219,6 +225,7 @@ const USE_APPROX_FOR = new Set();
|
|||
|
||||
const USE_NURBS_FOR = new Set();
|
||||
USE_NURBS_FOR.add('Arc');
|
||||
USE_NURBS_FOR.add('Circle');
|
||||
|
||||
|
||||
export class Contour {
|
||||
|
|
|
|||
Loading…
Reference in a new issue