#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
stores map from element id in[0, size) to T;
Definition MRMesh/MRMeshFwd.h:472
the class models water increase in the terrain under the rain with constant precipitation
Definition MRPrecipitationSimulator.h:12
MRMESH_API SimulationStep simulateOne()
processes the next event happened with the terrain basins
Event
Definition MRPrecipitationSimulator.h:18
@ Merge
two basins just merged
@ BasinFull
one basin just became full
@ Finish
all basins are full and water goes outside
MRMESH_API PrecipitationSimulator(WatershedGraph &wg)
initializes modeling from the initial subdivision of the terrain
graphs representing rain basins on the mesh
Definition MRWatershedGraph.h:12
Definition MRCameraOrientationPlugin.h:8
Definition MRPrecipitationSimulator.h:25
GraphVertId neiBasin
Definition MRPrecipitationSimulator.h:30
float amount
amount of precipitation (in same units as mesh coordinates and water level)
Definition MRPrecipitationSimulator.h:27
GraphVertId basin
Definition MRPrecipitationSimulator.h:28