Appearance
@npm9912/v-map / map-provider/geotiff/utils/BVHNode2D / BVHNode2D
Class: BVHNode2D
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:4
Constructors
Constructor
new BVHNode2D(
bbox,triangles,left,right):BVHNode2D
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:5
Parameters
bbox
triangles
Triangle2D[] = []
left
BVHNode2D = null
right
BVHNode2D = null
Returns
BVHNode2D
Properties
bbox
bbox:
AABB2D
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:6
left
left:
BVHNode2D=null
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:8
right
right:
BVHNode2D=null
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:9
triangles
triangles:
Triangle2D[] =[]
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:7
Methods
findContainingTriangle()
findContainingTriangle(
point):Triangle2D
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:56
Finds the triangle containing the given point.
Parameters
point
The point to test.
Returns
The containing triangle or null.
getStats()
getStats():
object
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:153
Get statistics about the BVH tree
Returns
object
Object with tree statistics
depth
depth:
number
leafCount
leafCount:
number
maxTrianglesPerLeaf
maxTrianglesPerLeaf:
number
minTrianglesPerLeaf
minTrianglesPerLeaf:
number
nodeCount
nodeCount:
number
triangleCount
triangleCount:
number
toString()
toString(
indent):string
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:110
Returns a string representation of the BVH tree structure
Parameters
indent
string = ''
Internal parameter for recursive formatting
Returns
string
Formatted string showing tree structure
build()
staticbuild(triangles,depth,maxDepth):BVHNode2D
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:12
Parameters
triangles
depth
number = 0
maxDepth
number = 10
Returns
BVHNode2D
punktInDreieck2D()
staticpunktInDreieck2D(p,triangle):boolean
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:75
Parameters
p
triangle
Returns
boolean
toTriangle2D()
statictoTriangle2D(triangle):Triangle2D
Defined in: src/map-provider/geotiff/utils/BVHNode2D.ts:95