Skip to content

Dynamo package for spatial queries using tree data structures

Notifications You must be signed in to change notification settings

tatlin/DynamoSpacePartitioning

 
 

Repository files navigation

Dynamo Space Partitioning

A Dynamo package for common spatial search and intersection tests on large amounts of objects using tree data structures. The implementations here are currently naive and unoptimized, but they should still be considerably faster than brute force strategies.

Currently supported:

  • K-D trees indexed by points
    • 2D and 3D versions
    • Radius queries (Sphere intersection)
    • Nearest neighbor search
    • Implemented with Supercluster.KDTree
  • Octrees indexed by bounding box
    • 3D only
    • Hit tests (Point intersection)
    • Range queries (Bounding box intersection)
    • Radius queries (Sphere intersection)
    • Dynamo-specific implementation

Future possibilities:

  • K-D trees
    • Arbitrary dimensions
  • Octrees
    • Ray intersection
    • Nearest neighbor search
    • Visibility tests (Frustum intersection)
  • Quadtrees (2D Octree)
  • Tuning of tree parameters for advanced users
  • Fancier implementations (skip octrees, etc.)
  • Memory optimizations

In Use

Examples/Octree Simple Example.dyn

Screenshot of Octree Simple Example.dyn graph in Examples folder

About

Dynamo package for spatial queries using tree data structures

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%