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)