kodecocodes/swift-algorithm-club

Octree minimumCellSize not used?

dcooley opened this issue · 0 comments

minimumCellSize is required to initialise the octree here, but it is never used in the algorithm.

public class Octree<T: Equatable>: CustomStringConvertible {
    var root: OctreeNode<T>
    
    public init(boundingBox: Box, minimumCellSize: Double) {
        root = OctreeNode<T>(box: boundingBox)
    }

}

Is this an oversight, or have I misunderstood how it's used?