webcad-api/types/DatabaseServices/SplineConver2Polyline.d.ts

16 lines
931 B
TypeScript

import { Vector2 } from "three";
import { Polyline } from "./Entity/Polyline";
import { Spline } from "./Spline";
export declare function SplineConver2Polyline(spl: Spline, tolerance?: number): Polyline;
/**
* 将碎点简化为多段线,(尝试转换为简单圆弧,或者使用双圆弧插值)
* @param pts 点表
* @param [tolerance=0.1] 容差
* @param [parseArc=true] 解析成简单圆弧
* @param [lineLengthSq=2000]
* @returns 多段线
*/
export declare function PointsSimplify2PolylineAndParseArc(pts: Vector2[], buls?: number[], tolerance?: number, parseArc?: boolean, lineLengthSq?: number): Polyline;
export declare function SmartPointsSimply2Polyline(pts: Vector2[], buls?: number[], tolerance?: number, lineLengthSq?: number): Polyline;
export declare function SmartPolylineSimply2Polyline(pl: Polyline, tolerance?: number, lineLengthSq?: number): Polyline;
//# sourceMappingURL=SplineConver2Polyline.d.ts.map