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); }
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); }
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); }