From 6e6a88604b9324b9f0fb719202b00044821b220f Mon Sep 17 00:00:00 2001 From: ChenX Date: Fri, 1 Apr 2022 17:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96:=E4=BF=AE=E6=94=B9csg?= =?UTF-8?q?=E4=BA=A4=E9=9B=86=E5=B8=83=E5=B0=94=E8=BF=90=E7=AE=97=E7=9A=84?= =?UTF-8?q?=E7=B2=BE=E5=BA=A6,=E9=81=BF=E5=85=8D=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E5=87=BA=E7=8E=B0=E5=B9=B2=E6=B6=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/copy_type.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/utils/copy_type.ts b/utils/copy_type.ts index e7d66edd1..3af725942 100644 --- a/utils/copy_type.ts +++ b/utils/copy_type.ts @@ -54,3 +54,15 @@ readFile("node_modules\\dxf-parser\\dist\\ParseHelpers.js", "utf-8", (err, str) console.log("dxf parse hack 成功"); }); }); + +readFile("node_modules\\@jscad\\modeling\\src\\maths\\constants.js", "utf-8", (err, str) => +{ + str = str.replaceAll("5", "3"); + writeFile("node_modules\\@jscad\\modeling\\src\\maths\\constants.js", str, err => + { + if (err) + console.log("csg写入失败"); + else + console.log("csg hack 成功"); + }); +});