protected void CalculateFullSphere(Vector3d[] list) { SphereHull result = ConvexHull.FindEnclosingSphere(list); sphereCenter = result.Center; sphereRadius = result.Radius; }
private void CalcSphere(Vector3d[] list) { SphereHull result = ConvexHull.FindEnclosingSphere(list); sphereCenter = result.Center; sphereRadius = result.Radius; }
//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; }
protected void CalcSphere(Vector3d[] list) { ConvexHull.FindEnclosingSphere(list, out sphereCenter, out sphereRadius); }