示例#1
0
文件: ObjCell.cs 项目: roidzilla/ACE
        public static void find_cell_list(Position position, Sphere sphere, CellArray cellArray, SpherePath path)
        {
            var globalSphere = new Sphere();

            globalSphere.Center = position.LocalToGlobal(sphere.Center);
            globalSphere.Radius = sphere.Radius;

            find_cell_list(position, 1, globalSphere, cellArray, null, path);
        }
示例#2
0
        public static void find_cell_list(Position position, Sphere sphere, CellArray cellArray, SpherePath path, uint instance)
        {
            var globalSphere = new Sphere();

            globalSphere.Center = position.LocalToGlobal(sphere.Center);
            globalSphere.Radius = sphere.Radius;

            ObjCell empty = null;

            find_cell_list(position, 1, globalSphere, cellArray, ref empty, path, instance);
        }
示例#3
0
文件: ObjCell.cs 项目: roidzilla/ACE
        public static void find_cell_list(Position position, int numCylSphere, List <CylSphere> cylSphere, CellArray cellArray, SpherePath path)
        {
            if (numCylSphere > 10)
            {
                numCylSphere = 10;
            }

            var spheres = new List <Sphere>();

            for (var i = 0; i < numCylSphere; i++)
            {
                var sphere = new Sphere();
                sphere.Center = position.LocalToGlobal(cylSphere[i].LowPoint);
                sphere.Radius = cylSphere[i].Radius;
                spheres.Add(sphere);
            }

            find_cell_list(position, numCylSphere, spheres, cellArray, null, path);
        }