更新注释

pull/68/head
Zoe 6 years ago
parent cb59da4e2d
commit 8bcf8bcf35

@ -8,7 +8,7 @@ import { FixIndex } from '../Common/Utils';
import { equal, equaln, updateGeometry } from '../Geometry/GeUtils';
import { RenderType } from '../GraphicsSystem/Enum';
import { IntersectOption, IntersectPolylineAndCurve } from '../GraphicsSystem/IntersectWith';
import { PolyOffestUtil, PolyOffestUtil2 } from '../GraphicsSystem/OffestPolyline';
import { PolyOffestUtil } from '../GraphicsSystem/OffestPolyline';
import { Arc } from './Arc';
import { Factory } from './CADFactory';
import { CADFile } from './CADFile';
@ -637,7 +637,7 @@ export class Polyline extends Curve
//偏移
GetOffsetCurves(offsetDist: number): Array<Curve>
{
let polyOffestUtil = new PolyOffestUtil2(this, offsetDist);
let polyOffestUtil = new PolyOffestUtil(this, offsetDist);
return polyOffestUtil.GetOffsetCurves();
}
/**

@ -20,11 +20,10 @@ interface offestRes
* 线,线线
* 线,
* 线线线线
* 线
* 线
*
*
* 线
* //TODO:尝试先通过自交点把偏移后曲线数组打散,然后进行曲线切割(用源线段点和线段到源线段的最近点)
* 线
* @export
* @class PolyOffestUtil
*/
@ -120,8 +119,6 @@ export class PolyOffestUtil
} else return oldSlope !== newSlope
}
for (let i = 0; i < offResList.length; i++)
{
//前面线
@ -173,7 +170,7 @@ export class PolyOffestUtil
//终点data
let endV = i === offResList.length - 1 ? laterLine.LineData[0] : this.clonePlData(laterLine.LineData[0]);
//判断线段是否为补圆弧
//判断线段是否为补圆弧,若是补圆弧,则不受斜率和圆弧方向影响
let isMendPl = false;
// 如果两线结合点不相等,调整交点位置
@ -601,6 +598,7 @@ export class PolyOffestUtil
* 线线,线线
* 线
* 线
* bug
*
* @export
* @class PolyOffestUtil2

Loading…
Cancel
Save