Classes | |
class | BasinInfo |
class | BdInfo |
class | OverflowPoint |
Generated from: MR::WatershedGraph graphs representing rain basins on the mesh
None meshlib.mrmeshpy.WatershedGraph.__init__ | ( | self, | |
Mesh | mesh, | ||
Vector_int_FaceId | face2basin, | ||
int | numBasins ) |
constructs the graph from given mesh, heights in z-coordinate, and initial subdivision on basins
None meshlib.mrmeshpy.WatershedGraph.__init__ | ( | self, | |
WatershedGraph | arg0 ) |
Implicit copy constructor.
WatershedGraph.BasinInfo meshlib.mrmeshpy.WatershedGraph.basinInfo | ( | self, | |
GraphVertId | v ) |
returns data associated with given basin
WatershedGraph.BasinInfo meshlib.mrmeshpy.WatershedGraph.basinInfo | ( | self, | |
GraphVertId | v ) |
WatershedGraph.BdInfo meshlib.mrmeshpy.WatershedGraph.bdInfo | ( | self, | |
GraphEdgeId | e ) |
returns data associated with given boundary between basins
WatershedGraph.BdInfo meshlib.mrmeshpy.WatershedGraph.bdInfo | ( | self, | |
GraphEdgeId | e ) |
float meshlib.mrmeshpy.WatershedGraph.computeBasinVolume | ( | self, | |
GraphVertId | basin, | ||
float | waterLevel ) |
returns water volume in basin when its surface reaches given level, which must be in between the lowest basin level and the lowest level on basin's boundary
tuple[GraphEdgeId, float] meshlib.mrmeshpy.WatershedGraph.findLowestBd | ( | self | ) |
finds the lowest boundary between basins and its height, which is defined as the minimal different between lowest boundary point and lowest point in a basin
GraphVertId meshlib.mrmeshpy.WatershedGraph.flowsFinallyTo | ( | self, | |
GraphVertId | v, | ||
bool | exceptOutside = False ) |
returns the basin where the flow from this basin finally goes (it can be self id if the basin is not full yet); \\param exceptOutside if true then the method returns the basin that receives water flow from (v) just before outside
GraphVertId meshlib.mrmeshpy.WatershedGraph.flowsTo | ( | self, | |
GraphVertId | v ) |
returns the basin where the flow from this basin goes next (it can be self id if the basin is not full yet)
Vector_FaceBitSet_GraphVertId meshlib.mrmeshpy.WatershedGraph.getAllBasinFaces | ( | self, | |
bool | joinOverflowBasins = False ) |
returns the mesh faces of each valid basin; \\param joinOverflowBasins if true then overflowing basins will be merged in the target basins (except for overflow in outside)
FaceBitSet meshlib.mrmeshpy.WatershedGraph.getBasinFaces | ( | self, | |
GraphVertId | basin ) |
returns the mesh faces of given basin
FaceBitSet meshlib.mrmeshpy.WatershedGraph.getBasinFacesBelowLevel | ( | self, | |
GraphVertId | basin, | ||
float | waterLevel ) |
returns the mesh faces of given basin with at least one vertex below given level
float meshlib.mrmeshpy.WatershedGraph.getHeightAt | ( | self, | |
VertId | v ) |
returns height at given vertex or FLT_MAX if the vertex is invalid
UndirectedEdgeBitSet meshlib.mrmeshpy.WatershedGraph.getInterBasinEdges | ( | self, | |
bool | joinOverflowBasins = False ) |
returns the mesh edges between current basins \\param joinOverflowBasins if true then overflowing basins will be merged in the target basins (except for overflow in outside)
std_vector_WatershedGraph_OverflowPoint meshlib.mrmeshpy.WatershedGraph.getOverflowPoints | ( | self | ) |
returns all overflow points in the graph
GraphVertId meshlib.mrmeshpy.WatershedGraph.getRootBasin | ( | self, | |
GraphVertId | v ) |
for valid basin returns self id; for invalid basin returns the id of basin it was merged in
Graph meshlib.mrmeshpy.WatershedGraph.graph | ( | self | ) |
returns underlying graph where each basin is a vertex
Vector_GraphVertId_GraphVertId meshlib.mrmeshpy.WatershedGraph.iniBasin2Tgt | ( | self, | |
bool | joinOverflowBasins = False ) |
computes a map from initial basin id to a valid basin in which it was merged \\param joinOverflowBasins if true then overflowing basins will be merged in the target basins (except for overflow in outside)
GraphVertId meshlib.mrmeshpy.WatershedGraph.merge | ( | self, | |
GraphVertId | v0, | ||
GraphVertId | v1 ) |
merges basin v1 into basin v0, v1 is deleted after that, returns v0
GraphVertId meshlib.mrmeshpy.WatershedGraph.mergeViaBd | ( | self, | |
GraphEdgeId | bd ) |
merges two basins sharing given boundary, returns remaining basin
int meshlib.mrmeshpy.WatershedGraph.numBasins | ( | self | ) |
returns the current number of basins (excluding special "outside" basin)
GraphVertId meshlib.mrmeshpy.WatershedGraph.outsideId | ( | self | ) |
returns special "basin" representing outside areas of the mesh
None meshlib.mrmeshpy.WatershedGraph.setParentsToRoots | ( | self | ) |
replaces parent of each basin with its computed root; this speeds up following calls to getRootBasin()
float meshlib.mrmeshpy.WatershedGraph.totalArea | ( | self | ) |
returns total precipitation area