From d0bf75fa5bb5e09e65d2ccb2434f77ea0d46ab0a Mon Sep 17 00:00:00 2001 From: ChenX Date: Wed, 19 Oct 2022 16:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=E7=A7=BB=E9=99=A4=E9=87=8D?= =?UTF-8?q?=E8=BD=BD=E7=9A=84Extrude.Position?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DatabaseServices/Entity/Extrude.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/DatabaseServices/Entity/Extrude.ts b/src/DatabaseServices/Entity/Extrude.ts index 444d5d563..c3a4d64cd 100644 --- a/src/DatabaseServices/Entity/Extrude.ts +++ b/src/DatabaseServices/Entity/Extrude.ts @@ -306,23 +306,6 @@ export class ExtrudeSolid extends Entity return this; } - get Position(): Vector3 - { - return super.Position; - } - set Position(p: Vector3) - { - let v = p.clone().sub(this.Position); - if (equalv3(v, ZeroVec)) return; - super.Position = p; - - let m = MoveMatrix(v); - for (let g of this.grooves) - g.ApplyMatrix(m); - - //由于修改矩阵会导致bsp错误 - this.csg = undefined; - } get Width() {