Package gaiasky.data.octreegen.generator
Interface IOctreeGenerator
- All Known Implementing Classes:
OctreeGeneratorMag,OctreeGeneratorPart
public interface IOctreeGenerator
Interface for octree generators.
-
Field Summary
Fields Modifier and Type Field Description static Logger.Loglogger -
Method Summary
Modifier and Type Method Description OctreeNodegenerateOctree(java.util.List<IParticleRecord> catalog)intgetDiscarded()static OctreeNodestartGeneration(java.util.List<IParticleRecord> catalog, OctreeGeneratorParams params)Computes the maximum axis-aligned bounding box containing all the particles in the catalog, and returns it as the root octree node.
-
Field Details
-
logger
-
-
Method Details
-
generateOctree
-
getDiscarded
int getDiscarded() -
startGeneration
static OctreeNode startGeneration(java.util.List<IParticleRecord> catalog, OctreeGeneratorParams params)Computes the maximum axis-aligned bounding box containing all the particles in the catalog, and returns it as the root octree node.- Parameters:
catalog- The incoming catalogparams- The octree generation parameters- Returns:
- The root octree node
-