开发:更新api

This commit is contained in:
FishOrBear
2022-02-16 11:15:31 +08:00
parent 4388a1f7c8
commit 8477786c73
1180 changed files with 37656 additions and 13243 deletions

23
types/Add-on/DXFSpline2Points.d.ts vendored Normal file
View File

@@ -0,0 +1,23 @@
import { EntitySPLINE } from "dxf-parser-2";
import { Vec2 } from "three";
export declare function DXFSpline2Points(spl: EntitySPLINE): number[][];
/**
* Interpolate a b-spline. The algorithm examins the knot vector
* to create segments for interpolation. The parameterisation value
* is re-normalised back to [0,1] as that is what the lib expects (
* and t i de-normalised in the b-spline library)
*
* @param controlPoints the control points
* @param degree the b-spline degree
* @param knots the knot vector
* @returns the polyline
*/
export declare function interpolateBSpline(controlPoints: Vec2[], degree: number, knots: number[], interpolationsPerSplineSegment: number, weights?: number[]): number[][];
/**
* Copied and ported to code standard as the b-spline library is not maintained any longer.
* Source:
* https://github.com/thibauts/b-spline
* Copyright (c) 2015 Thibaut Séguy <thibaut.seguy@gmail.com>
*/
export declare function bSpline(t: number, degree: number, points: number[][], knots: number[], weights?: number[]): number[];
//# sourceMappingURL=DXFSpline2Points.d.ts.map