Package com.gaia3d.basic.geometry.octree
Class HalfEdgeOctree
java.lang.Object
com.gaia3d.basic.geometry.octree.HalfEdgeOctree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
distributeFacesToTargetDepth
(int targetDepth) void
extractOctreesWithContents
(List<HalfEdgeOctree> octrees) void
extractOctreesWithFaces
(List<HalfEdgeOctree> octrees) double
double
getSizeX()
double
getSizeY()
double
getSizeZ()
boolean
boolean
intersectsPoint
(org.joml.Vector3d point) void
makeTreeByMaxDepth
(int maxDepth) void
makeTreeByMinBoxSize
(double minBoxSize) void
makeTreeByMinVertexCount
(int minVertexCount) void
void
setSize
(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
-
Constructor Details
-
HalfEdgeOctree
-
-
Method Details
-
setAsCube
public void setAsCube() -
createChildren
public void createChildren() -
makeTreeByMaxDepth
public void makeTreeByMaxDepth(int maxDepth) -
makeTreeByMinBoxSize
public void makeTreeByMinBoxSize(double minBoxSize) -
makeTreeByMinVertexCount
public void makeTreeByMinVertexCount(int minVertexCount) -
calculateSize
public void calculateSize() -
setSize
public void setSize(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) -
distributeFacesToTargetDepth
public void distributeFacesToTargetDepth(int targetDepth) -
intersectsPoint
public boolean intersectsPoint(org.joml.Vector3d point) -
intersectsBoundingBox
-
distributeContents
public void distributeContents() -
extractOctreesWithFaces
-
extractOctreesWithContents
-
getSizeX
public double getSizeX() -
getSizeY
public double getSizeY() -
getSizeZ
public double getSizeZ() -
getMaxSize
public double getMaxSize()
-