novaphy.sample_model_boundaries¶
Sample supported rigid-body surfaces with boundary particles for Akinci
coupling. The current implementation samples Box, Sphere, and Plane
shapes. Capsule, cylinder, convex-hull, triangle-mesh, and heightfield shapes
currently contribute no boundary particles.
def sample_model_boundaries(
model: Model,
spacing: float,
plane_extent: float = 1.0,
) -> list[BoundaryParticle]
plane_extent is the sampled half-extent used for otherwise infinite plane
shapes.