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

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));
else
{
let arc = new Arc(new Vector3(parseFloat(geCurve.ArcCenX), parseFloat(geCurve.ArcCenY), parseFloat(geCurve.ArcCenZ)));
arc.Radius = arc.Center.distanceTo(p1);
arc.IsClockWise = false;
arc.StartAngle = arc.GetAngleAtPoint(p1);
arc.EndAngle = arc.GetAngleAtPoint(p2);
let arc = new Arc().FromThreePoint(
p1,
new Vector3(parseFloat(geCurve.MidX), parseFloat(geCurve.MidY)),
p2,
);
cus.push(arc);
}
}

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

Loading…
Cancel
Save