CurveLoop的偏移,有两种:
1.平面内的偏移,意思是对CurveLoop进行放大或者缩小,
var newLoop = CurveLoop.CreateViaOffset(curveLoop, offset, new XYZ(0, 0, 1));
上述代码,对现有的curveLoop进行偏移,按照右手螺旋法则对curveLoop里的每一条curve进行偏移,偏移值为offset
2.对CurveLoop进行移动
CurveLoop.CreateViaTransform(curveLoop, Transform.CreateTranslation(new XYZ(0, 0, 1)));
上述代码,对curveLoop,沿着Z轴方向进行移动。