Documentation ¶
Index ¶
Constants ¶
View Source
const ( OctreeMaxDepth = 21 OctreeMaxLeafItems = 100 )
Variables ¶
View Source
var ( ErrOctreeItemNotInserted = errors.New("item not inserted") ErrOctreeCannotSplitNode = errors.New("cannot split node") )
Functions ¶
This section is empty.
Types ¶
type Octree ¶
type Octree struct {
// contains filtered or unexported fields
}
func (*Octree) GetNumberOfItems ¶
Get the number of indexed items.
type OctreeNode ¶
type OctreeNode struct {
// contains filtered or unexported fields
}
func NewOctreeNode ¶
func NewOctreeNode(code uint64, aabb meshx.AABB) *OctreeNode
Construct a leaf OctreeNode.
func (*OctreeNode) Children ¶
func (o *OctreeNode) Children() []uint64
Compute the children octant codes.
Click to show internal directories.
Click to hide internal directories.