sample_volume
Read volume fields at specified world positions or from another SOP's points to return per-point values and summary statistics for analysis.
Instructions
Read named volume fields at world positions, or at another SOP's points.
"What does the collision SDF read where the particles are" is one call with from_node, and adds no node to the scene. A VDB SDF reads its background (the band width) outside its narrow band, not the distance.
Args: node_path: SOP holding the volumes. fields: Volume names (the name attribute), e.g. ["density"]. positions: [[x, y, z], ...] in world space. from_node: SOP whose points are the positions, instead of positions. limit: Values are returned up to this many positions; the summary always is. bins: Histogram bin count, or a list of bin edges, for the summary. threshold: Count the samples above this value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bins | No | ||
| limit | No | ||
| fields | Yes | ||
| from_node | No | ||
| node_path | Yes | ||
| positions | No | ||
| threshold | No |