newton.geometry.build_bvh_particle#

newton.geometry.build_bvh_particle(model, state)[source]#

Build the particle BVH stored on model.

Allocates bvh_particles and bvh_particles_group_roots and populates them from the current state. Must be called before refit_bvh_particle() and before any sensor that reads the particle BVH.

Parameters:
  • model (Model) – Simulation model providing particle metadata.

  • state (State) – Current simulation state with particle positions.