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

36 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-10-29 17:14:43 +08:00
import { Vec2, Vector2 } from "three";
import { Arc } from "./Entity/Arc";
import { Line } from "./Entity/Line";
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;
/**
* 线,线
* @param pl
* @param [tolerance=0.1]
* @param [lineLengthSq=2000]
* @returns undefined时,
*/
export declare function SmartPolylineSimply2Polyline(pl: Polyline, tolerance?: number, lineLengthSq?: number): Polyline | undefined;
declare function Vec2(x: number, y: number): void;
/**
*
* @param p1
* @param p2
* @param t1 线
* @param t2 线
* @returns (线)
*/
export declare function ComputeBiarc(p1: Vec2, p2: Vec2, t1: Vec2, t2: Vec2): [Arc | Line, Arc | Line];
export {};
//# sourceMappingURL=SplineConver2Polyline.d.ts.map