MeshLib
 
Loading...
Searching...
No Matches
MR::PrecipitationSimulator Class Reference

the class models water increase in the terrain under the rain with constant precipitation More...

#include <MRPrecipitationSimulator.h>

Classes

struct  SimulationStep
 

Public Types

enum class  Event { Finish , BasinFull , Merge }
 

Public Member Functions

MRMESH_API PrecipitationSimulator (WatershedGraph &wg)
 initializes modeling from the initial subdivision of the terrain
 
MRMESH_API SimulationStep simulateOne ()
 processes the next event happened with the terrain basins
 

Detailed Description

the class models water increase in the terrain under the rain with constant precipitation

Member Enumeration Documentation

◆ Event

Enumerator
Finish 

all basins are full and water goes outside

BasinFull 

one basin just became full

Merge 

two basins just merged

Constructor & Destructor Documentation

◆ PrecipitationSimulator()

MRMESH_API MR::PrecipitationSimulator::PrecipitationSimulator ( WatershedGraph & wg)

initializes modeling from the initial subdivision of the terrain

Member Function Documentation

◆ simulateOne()

MRMESH_API SimulationStep MR::PrecipitationSimulator::simulateOne ( )

processes the next event happened with the terrain basins


The documentation for this class was generated from the following file: