protected void CalculateFullSphere(Vector3d[] list)
        {
            SphereHull result = ConvexHull.FindEnclosingSphere(list);

            sphereCenter = result.Center;
            sphereRadius = result.Radius;
        }
示例#2
0
        private void CalcSphere(Vector3d[] list)
        {
            SphereHull result = ConvexHull.FindEnclosingSphere(list);

            sphereCenter = result.Center;
            sphereRadius = result.Radius;
        }
示例#3
0
        //private bool LoadDemData()
        //{
        //    DemData = (float[])(object)demFile;

        //    //todo get dem from parent
        //    return true;
        //}


        protected void CalcSphere()
        {
            Vector3d[] corners = new Vector3d[4];
            corners[0] = TopLeft;
            corners[1] = BottomRight;
            corners[2] = TopRight;
            corners[3] = BottomLeft;
            SphereHull result = ConvexHull.FindEnclosingSphere(corners);

            sphereCenter = result.Center;
            sphereRadius = result.Radius;
        }
示例#4
0
 protected void CalcSphere(Vector3d[] list)
 {
     ConvexHull.FindEnclosingSphere(list, out sphereCenter, out sphereRadius);
 }