|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
static |
Build hash grid parameters from a NetworkGeometryBuffer's network and its primary operator.
| buffer | Buffer whose network supplies particle_count, vertex layout and bounds. Reads the layout from the network's own GraphicsOperator (e.g. PhysicsOperator::get_vertex_layout), not from the buffer's cached copy: that copy is written by NetworkGeometryProcessor during upload and unset before the first cycle, whereas the operator's own layout is valid the moment create_operator<PhysicsOperator>() (or equivalent) returns. Callable synchronously right after setup, with no need to wait for a processing cycle. |
| cell_size | Grid cell size. Ordinarily PhysicsOperator's own interaction radius when the network is physics-driven; there is no generic source for this, since not every ParticleNetwork operator has an equivalent concept, so the caller supplies it directly. |
Definition at line 17 of file SpatialHashProcessor.cpp.
References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, cell_size, grid_min, MayaFlux::Kinesis::SamplerBounds::max, MF_ERROR, MayaFlux::Kinesis::SamplerBounds::min, network, stride_words, and MayaFlux::Kakshya::VERTEX_POSITIONS_3D.
Referenced by MayaFlux::Buffers::NetworkGeometryBuffer::wire_field_operators().
Here is the caller graph for this function: