Package gaiasky.data.octreegen.generator
Class OctreeGeneratorPart
- java.lang.Object
-
- gaiasky.data.octreegen.generator.OctreeGeneratorPart
-
- All Implemented Interfaces:
IOctreeGenerator
public class OctreeGeneratorPart extends java.lang.Object implements IOctreeGenerator
Greedy generator where octants in a level are filled up with as many stars as possible before proceeding to lower levels. This approach is outdated and should not be used. UseOctreeGeneratorMag
instead. This uses less memory than the its magnitude counterpart, but does not implement the bijective map f: mag -> level.
-
-
Field Summary
-
Fields inherited from interface gaiasky.data.octreegen.generator.IOctreeGenerator
logger
-
-
Constructor Summary
Constructors Constructor Description OctreeGeneratorPart(OctreeGeneratorParams params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OctreeNode
generateOctree(com.badlogic.gdx.utils.Array<StarGroup.StarBean> catalog)
int
getDiscarded()
-
-
-
Constructor Detail
-
OctreeGeneratorPart
public OctreeGeneratorPart(OctreeGeneratorParams params)
-
-
Method Detail
-
generateOctree
public OctreeNode generateOctree(com.badlogic.gdx.utils.Array<StarGroup.StarBean> catalog)
- Specified by:
generateOctree
in interfaceIOctreeGenerator
-
getDiscarded
public int getDiscarded()
- Specified by:
getDiscarded
in interfaceIOctreeGenerator
-
-