更新版本

This commit is contained in:
2025-05-20 18:10:58 +08:00
parent 00b58ffefe
commit 1a72a9679d
29 changed files with 162 additions and 102 deletions

View File

@@ -1,4 +1,4 @@
import { BufferGeometry, Geometry, Vector2, Vector3 } from "three";
import { BufferGeometry, Geometry, Matrix4, Vector2, Vector3 } from "three";
import { LineGeometry } from "three/examples/jsm/lines/LineGeometry";
import { Curve } from "../DatabaseServices/Entity/Curve";
import { Polyline } from "../DatabaseServices/Entity/Polyline";
@@ -44,6 +44,15 @@ export declare class SweepGeometry extends Geometry {
* @returns 变换后的轮廓点表
*/
export declare function ProjectionToPlane(contourPts: Vector3[], normal: Vector3, curP: Vector3, preP?: Vector3, nextP?: Vector3): Vector3[];
/**
* 计算轮廓变换到`路径上某个点`的矩阵
*
* @param {Vector3} pt 路径上的点
* @param {Vector3} norm 曲线法向量
* @param {Vector3} dir 点前进的方向.
* @returns {Matrix4}
*/
export declare function ContourTransfromToPath(pt: Vector3, norm: Vector3, dir: Vector3): Matrix4;
type Polygon = number[];
export declare class SweepGeometrySimple extends SweepGeometry {
SidePolygons: (Polygon[])[];