示例#1
0
 public clsVCS3(clsBox box)
 {
     _Azimuth   = 55;
     _Elevation = 20;
     Resize(box);
     _Radius -= 100;//稍放大
     UpdateVpUp();
 }
示例#2
0
 private clsBox(ref clsBox box)
 {
     Xmin = box.Xmin;;
     Ymin = box.Ymin;
     Zmin = box.Zmin;
     Wx   = box.Wx;
     Wy   = box.Wy;
     Wz   = box.Wz;
     XMax = Xmin + Wx;
     YMax = Ymin + Wy;
     ZMax = Zmin + Wz;
 }
示例#3
0
 public void Resize(clsBox box)
 {
     _Radius = box.Wx;
     if (box.Wy > _Radius)
     {
         _Radius = box.Wy;
     }
     if (box.Wz > _Radius)
     {
         _Radius = box.Wz;
     }
     _Radius *= 10;
     //设置观察的目标点为包围盒的中心
     _Origin = new Vector3(box.CX(), box.CY(), box.CZ());
     UpdateVpUp();
 }