/** CT操作用プログラム */ #include "CT.h" static int Stack_Paint3D = 0; static bool Stop_Paint3D = false; /** int get_fPoint(MSGraph gd, double xx, double yy, double zz) 機能:各座標(double)の輝度値を返す.補間法は線形補間.Z方向の歪補正あり.    補間法の制限によりZ=(Z方向の最大値)の平面の値は取れない(範囲外となる).    座標値が範囲外の場合は gd->zero を返す. */ int get_fPoint(MSGraph gd, double xx, double yy, double zz) { int ix, iy, iz, ax, ay, az; int ia, ib, ic, id, im, in, io, ip; double fa, fb, fc, fd, fm, fn, fo, fp; double fx, fy, fz; int ret; ret = gd.zero; zz = (double)(zz*gd.RZxy); // (ex. *0.4/2.0) ix = (int)(xx) - gd.rbound.xmin; iy = (int)(yy) - gd.rbound.ymin; iz = (int)(zz) - gd.rbound.zmin; ax = ix + 1; ay = iy + 1; az = iz + 1; fx = xx - ix - gd.rbound.xmin; fy = yy - iy - gd.rbound.ymin; fz = zz - iz - gd.rbound.zmin; if (ix>=0&&ax=0&&ay=0&&az