更新包
This commit is contained in:
13
types/GraphicsSystem/OffsetPolyline.d.ts
vendored
13
types/GraphicsSystem/OffsetPolyline.d.ts
vendored
@@ -36,6 +36,7 @@ export declare class OffsetPolyline {
|
||||
_ToolPath: boolean;
|
||||
private _OffsetDistSq;
|
||||
private _JoinType;
|
||||
private _KeepCollinearLine;
|
||||
_CacheOCS: Matrix4;
|
||||
_Vertexs: Vector3[];
|
||||
_SubCurves: Curve[];
|
||||
@@ -58,9 +59,11 @@ export declare class OffsetPolyline {
|
||||
* @param [_ToolPath=false] 走刀模式(在这个模式下,我们会进行圆弧过渡(或者直线过渡)避免尖角过大)
|
||||
* @param [_OffsetDistSq=(_OffsetDist ** 2) * 2.1] 允许的最大尖角长度 默认值差不多是矩形的尖角大一点
|
||||
* @param [_JoinType=PolylineJoinType.Round] 尖角的处理方式,默认是圆弧过渡,可以切换成直线过渡
|
||||
* @param [_KeepCollinearLine=false] 保留共线部分(在向外偏移时,生产程序希望偏移后的结果仍然是一个封闭的曲线,将这个改成true能实现这个目的)
|
||||
*/
|
||||
constructor(_Polyline: Polyline, _OffsetDist: number, _ToolPath?: boolean, _OffsetDistSq?: number, //对直角走刀不进行圆弧过度
|
||||
_JoinType?: PolylineJoinType);
|
||||
_JoinType?: PolylineJoinType, //仅在走刀路径时生效
|
||||
_KeepCollinearLine?: boolean);
|
||||
Do(): Polyline[];
|
||||
InitSubCurves(): this;
|
||||
protected GeneralCirclesAndVertexs(): void;
|
||||
@@ -82,10 +85,18 @@ export declare class OffsetPolyline {
|
||||
private LinkResultPolyline;
|
||||
private RepairResultPolylineClosemark;
|
||||
CheckPointDir(pt: Vector3): boolean;
|
||||
/**
|
||||
* 点在线上 或者在线内(外)
|
||||
* @param pt
|
||||
* @returns 0在线上 1 -1
|
||||
*/
|
||||
GetPointAtCurveDir(pt: Vector3): number;
|
||||
protected CreateArc(center: Vector3, startP: Vector3, endP?: Vector3): Arc;
|
||||
protected CreateSquare(center: Vector3, curveNow: IOffsetResult, curveNext: IOffsetResult, entTypeCode: number): Line;
|
||||
}
|
||||
/**
|
||||
* @returns 1:全line 2:全arc 3:line and arc
|
||||
*/
|
||||
export declare function EntityEncode2(c1: Curve, c2: Curve): number;
|
||||
export declare function CurveIsFine(curve: Curve): boolean;
|
||||
export {};
|
||||
|
Reference in New Issue
Block a user