功能:新增简化多段线功能
This commit is contained in:
16
types/DatabaseServices/SplineConver2Polyline.d.ts
vendored
Normal file
16
types/DatabaseServices/SplineConver2Polyline.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
Reference in New Issue
Block a user