swift-algorithm-club icon indicating copy to clipboard operation
swift-algorithm-club copied to clipboard

Octree minimumCellSize not used?

Open dcooley opened this issue 4 years ago • 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?

dcooley avatar Feb 28 '21 23:02 dcooley