tf::sphere_like and tf::sphere exist in core/sphere_like.hpp and core/sphere.hpp, with some tf::distance overloads already in core/distance.hpp. But spheres are missing the collection types and most query algorithm dispatch needed to use them like other primitives.
1. Collection Types
Add sphere_view.hpp (with view policy, like point_view.hpp), spheres.hpp, spheres_buffer.hpp, and make_spheres factory, following the pattern of point_view.hpp / points.hpp / points_buffer.hpp.
2. AABB Integration
Add tf::aabb_from for sphere_like in core/aabb_from.hpp so spheres work with spatial trees.
3. Query Algorithm Dispatch
Some distance overloads exist (sphere with point, ray, line, segment). Missing:
core/distance.hpp
sphere_like / sphere_like
sphere_like / polygon_like
sphere_like / aabb_like
sphere_like / plane_like
core/intersects.hpp
- All
sphere_like combinations
core/closest_metric_point.hpp and core/closest_metric_point_pair.hpp
- All
sphere_like combinations
core/ray_cast.hpp and core/ray_hit.hpp
4. Spatial Tree Dispatch
Add sphere support to tree queries in spatial/:
distance.hpp
intersects.hpp
ray_cast.hpp
ray_hit.hpp
tf::sphere_likeandtf::sphereexist incore/sphere_like.hppandcore/sphere.hpp, with sometf::distanceoverloads already incore/distance.hpp. But spheres are missing the collection types and most query algorithm dispatch needed to use them like other primitives.1. Collection Types
Add
sphere_view.hpp(with view policy, likepoint_view.hpp),spheres.hpp,spheres_buffer.hpp, andmake_spheresfactory, following the pattern ofpoint_view.hpp/points.hpp/points_buffer.hpp.2. AABB Integration
Add
tf::aabb_fromforsphere_likeincore/aabb_from.hppso spheres work with spatial trees.3. Query Algorithm Dispatch
Some distance overloads exist (
spherewithpoint,ray,line,segment). Missing:core/distance.hppsphere_like/sphere_likesphere_like/polygon_likesphere_like/aabb_likesphere_like/plane_likecore/intersects.hppsphere_likecombinationscore/closest_metric_point.hppandcore/closest_metric_point_pair.hppsphere_likecombinationscore/ray_cast.hppandcore/ray_hit.hppray->sphere_like4. Spatial Tree Dispatch
Add sphere support to tree queries in
spatial/:distance.hppintersects.hppray_cast.hppray_hit.hpp