Package com.gaia3d.basic.geometry.octree
Class HalfEdgeOctree
java.lang.Object
com.gaia3d.basic.geometry.octree.HalfEdgeOctree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoiddistributeFacesToTargetDepth(int targetDepth) voidextractOctreesWithContents(List<HalfEdgeOctree> octrees) voidextractOctreesWithFaces(List<HalfEdgeOctree> octrees) doubledoublegetSizeX()doublegetSizeY()doublegetSizeZ()booleanbooleanintersectsPoint(org.joml.Vector3d point) voidmakeTreeByMaxDepth(int maxDepth) voidmakeTreeByMinBoxSize(double minBoxSize) voidmakeTreeByMinVertexCount(int minVertexCount) voidvoidsetSize(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()
-