Browse Source

intersection_model变量传递问题

VSbuild_required
郑敬润 1 year ago
parent
commit
0fb34c5684
  1. 1
      lib/Const.cpp
  2. 3
      lib/include/Const.h

1
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;

3
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)

Loading…
Cancel
Save