Many objects and particles

Unions of many objects through a BVH, point clouds and their nearest neighbors, and clouds of spheres: particles, their contacts, and solids cut by them.

  • NestedBVH: a mesh placed many times, in a tape and in a BVH union of meshes.

  • ManyObjects: a BVH union over many primitives, and how much it saves over a plain loop.

  • Packed spheres: thousands of spheres at random places in a cylinder, joined by a smooth BVH union.

  • PointClouds: closest points and nearest neighbors in a point cloud, with a BVH or a hash grid.

  • ParticleNeighbors: moving particles and every particle’s nearest neighbors after each step, the grid rebuilt where the particles live.

  • Sphere clouds: particles of differing sizes packed in a cylinder, the signed distance to their union and the closest particle; the cylinder with the particles cut out of it, fused and in a tape, and a ray through both.

  • Particle contacts: particles of differing sizes pushed apart in a cylinder until none overlap, rebuilding the cloud each round; their contacts, a contact list, and a near-contact force per particle on a GPU.

  • Tornado: a property carried on a sphere cloud of millions: each sphere’s wind speed in an array beside the cloud, queried on the host and a GPU, and the spheres colored by it.