From 0fb34c56846673a6887f08f147b670db214c3b8b Mon Sep 17 00:00:00 2001 From: yony Date: Wed, 5 Jun 2024 15:27:48 +0800 Subject: [PATCH] =?UTF-8?q?intersection=5Fmodel=E5=8F=98=E9=87=8F=E4=BC=A0?= =?UTF-8?q?=E9=80=92=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Const.cpp | 1 + lib/include/Const.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Const.cpp b/lib/Const.cpp index 3939a05..896917b 100644 --- a/lib/Const.cpp +++ b/lib/Const.cpp @@ -3,3 +3,4 @@ double MAXX = -1e9, MINX = 1e9, MAXY = -1e9, MINY = 1e9, MAXZ = -1e9, MINZ = 1e9; // 卡箍的坐标范围 double Ycenter, Zcenter; // 飞机在Y,Z两轴的中心 +int intersection_model = 0; \ No newline at end of file diff --git a/lib/include/Const.h b/lib/include/Const.h index ca97a62..6da5a83 100644 --- a/lib/include/Const.h +++ b/lib/include/Const.h @@ -51,9 +51,8 @@ static const P DZ = P(0, 0, 1); CONST_API extern double MAXX, MINX, MAXY, MINY, MAXZ, MINZ; // 卡箍的坐标范围,初值-1e9~1e9 CONST_API extern double Ycenter, Zcenter; // 飞机在Y,Z两轴的中心 - // static const double intersection_distance = 100; -static int intersection_model = 0; //是否判断求交 +CONST_API extern int intersection_model; //是否判断求交 // 判断y是否在[x-margin,z+margin]的范围内 inline bool inmid(const double x, const double y, const double z, const double margin = MARGIN)