MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::WatershedGraph::BasinInfo Struct Reference

associated with each vertex in graph More...

#include <MRWatershedGraph.h>

Public Member Functions

 BasinInfo ()
 
float amountTillOverflow () const
 Apparently I need this for MR::Vector to register default-constructibility inside the enclosing class.
 
float approxLevel () const
 approximate current level of water (z-coordinate) in the basin
 
void updateAccVolume (float amount)
 updates accumulated volume in the basin to the moment of given precipitation amount
 

Public Attributes

VertId lowestVert
 in the whole basin
 
float lowestLevel = FLT_MAX
 lowest level (z-coordinate of lowestVert) in the basin
 
float area = 0
 precipitation area that flows in this basin (and if it is full, continue flowing next)
 
float lowestBdLevel = FLT_MAX
 lowest position on the boundary of the basin
 
float maxVolume = 0
 full water volume to be accumulated in the basin till water reaches the lowest height on the boundary
 
float accVolume = 0
 accumulated water volume in the basin so far
 
float lastUpdateAmount = 0
 the amount when accVolume was last updated
 
float lastMergeLevel = FLT_MAX
 water level in the basin when it was formed (by merge or creation)
 
float lastMergeVolume = 0
 water volume in the basin when it was formed (by merge or creation)
 
Graph::EdgeId overflowVia
 when level=lowestBdLevel, volume=0, all water from this basin overflows via this boundary
 

Detailed Description

associated with each vertex in graph


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