一:圆弧平面外
// 创建平面外偏移后的弧线
Arc newArc = arc.Clone() as Arc;
// 计算平移向量
Vector3d translation = arc.Normal * offset_out_dist.Value;
// 创建平移矩阵
Matrix3d translationMatrix = Matrix3d.Displacement(translation);
// 将平移矩阵应用于圆弧对象
newArc.TransformBy(translationMatrix);
MSpace.AppendEntity(newArc);
二:圆弧平面内
方法1:
MSpace.AppendEntity(newArc.GetOffsetCurves(offset_in_dist.Value)[0] as Entity);
方法2:
Arc newArc = new Arc(arc.Center, arc.Normal, arc.Radius + offset_in_dist.Value, arc.StartAngle, arc.EndAngle);
MSpace.AppendEntity(newArc);