修复:圆弧路径的扫略实体显示错误

sweep_draw
ChenX 3 years ago
parent b9bfb9518a
commit 38ef5c3845

@ -25,7 +25,7 @@ export class HardwareTopline extends SweepSolid
return this._contourRotation;
}
private _ContourWidth: number;
private get Contours()
private get Contours(): Curve[]
{
let c = this.Path;
let conBox = this.Contour.BoundingBox;
@ -63,7 +63,7 @@ export class HardwareTopline extends SweepSolid
*线,线
*
*/
get Segmentations()
get Segmentations(): Curve[]
{
const [l1, l2] = this.Contours;
if (!(l1 instanceof Polyline))

@ -24,7 +24,7 @@ export class Shape2 extends Shape
tempArc.IsClockWise = curve.aClockwise;
tempArc.StartAngle = curve.aStartAngle;
tempArc.EndAngle = curve.aEndAngle;
tempArc.Radius = curve.xRadius;
tempArc.Radius = Math.abs(curve.xRadius);
//根据圆弧的角度,来确定绘制个数
let count = Math.max(2, Math.abs(Math.ceil((tempArc.AllAngle) / Math.PI)) * divisions);

Loading…
Cancel
Save