优化:椭圆变板件增加更多的采样点

now_rel
ChenX 4 years ago
parent d126830253
commit 64d26c9557

@ -556,11 +556,13 @@ export class Ellipse extends Curve
}
Convert2Polyline(count = 10)
{
let pts = this.Shape.getPoints(count);
return new Polyline(pts.map(p =>
let pts = this.Shape.getPoints(this.Length / 50);
let pl = new Polyline(pts.map(p =>
{
return { pt: p, bul: 0 };
})).ApplyMatrix(this.OCS);
pl.CloseMark = true;
return pl;
}
protected _ReadFile(file: CADFiler)
{

Loading…
Cancel
Save