修复:嘉居解析圆弧板错误

pull/2374/head
ChenX 1 year ago
parent dd116b18f3
commit ab8ddb35c7

@ -388,11 +388,11 @@ function JiajuPath2Polyline(path: JiaJu.Path)
cus.push(new Line(p1, p2)); cus.push(new Line(p1, p2));
else else
{ {
let arc = new Arc(new Vector3(parseFloat(geCurve.ArcCenX), parseFloat(geCurve.ArcCenY), parseFloat(geCurve.ArcCenZ))); let arc = new Arc().FromThreePoint(
arc.Radius = arc.Center.distanceTo(p1); p1,
arc.IsClockWise = false; new Vector3(parseFloat(geCurve.MidX), parseFloat(geCurve.MidY)),
arc.StartAngle = arc.GetAngleAtPoint(p1); p2,
arc.EndAngle = arc.GetAngleAtPoint(p2); );
cus.push(arc); cus.push(arc);
} }
} }

@ -154,6 +154,10 @@ namespace JiaJu
ArcCenY: string; ArcCenY: string;
ArcCenZ: string; ArcCenZ: string;
MidX: string,
MidY: string,
MidZ: string,
ArcCen: string;//xyz ArcCen: string;//xyz
} }

Loading…
Cancel
Save