Closed canadaduane closed 2 years ago
It seems that the octree itself is incorrectly treated as a PointOctant<T>
although it doesn't implement DataContainer<T>
.
Would this be solved if the call to
raycastOctant
inintersectOctree
passed the root node of the octree, rather than the octree itself?
Yes, but I think it might be better to change the following line to pass in this.root
instead of this
:
The type of the octree
parameter in OctreeRaycaster.intersectOctree
can be changed to the broader Node
type.
This may be related to #40, or it may be caused by it (I'm not sure yet).
What happens is when I call
OctreeRaycaster
'sintersectOctree
, thePointOctree
raycast
function returns an error:pointData is undefined
:The problem is that
pointData
isundefined
, and therefore passes the not-null check.Would this be solved if the call to
raycastOctant
inintersectOctree
passed the root node of the octree, rather than the octree itself?