|
|
@ -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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|