flutter3d_fields 1.0.0-rc.1
flutter3d_fields: ^1.0.0-rc.1 copied to clipboard
The contract for a 3D grid of quantities that the simulation, the renderer and audio share, and for a solver that declares what it reads and writes. Plain Dart.
1.0.0-rc.1 #
- New: fields, as a contract of their own. A
FieldDeclarationnames a 3D grid of one quantity (a namespaced id, as a body's material state names one, in aUnit), itsFieldGridandFieldTransformin world positions, where its values are held (FieldResidence:host,buffer,texture3D, an open set), the one step that writes it and the steps that read it (FieldAccesson aFieldSide:simulation,frame,audio).HostFieldholds a host field's values in aFloat32List, samples it between cells and is a snapshot part of its own. A field a device cannot hold is refused withFieldResidenceExceptionand an openFieldRefusal. - New: subsystems. A solver registers as a
Subsystemwith itsSubsystemDeclaration: id and version, the quantities and fields it reads and writes, its phase and place in the step, and the profiles that switch it on (switchedOnBy).SubsystemContexthands it the fields it declared, read-only where it only reads.FieldRegistryandSubsystemRegistryare what the engine implements and a plugin reaches through its host; the simulation's version is composed from the running subsystems (SimulationVersion.subsystems).