Classes | |
| class | BasinInfo |
| class | BdInfo |
| class | OverflowPoint |
Static Public Member Functions | |
| None | __init__ (*args, **kwargs) |
Generated from: MR::WatershedGraph graphs representing rain basins on the mesh
|
static |
| None 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 mrmeshpy.WatershedGraph.__init__ | ( | self, | |
| WatershedGraph | arg0 ) |
Implicit copy constructor.
| WatershedGraph.BasinInfo mrmeshpy.WatershedGraph.basinInfo | ( | self, | |
| GraphVertId | v ) |
returns data associated with given basin
| WatershedGraph.BasinInfo mrmeshpy.WatershedGraph.basinInfo | ( | self, | |
| GraphVertId | v ) |
| WatershedGraph.BdInfo mrmeshpy.WatershedGraph.bdInfo | ( | self, | |
| GraphEdgeId | e ) |
returns data associated with given boundary between basins
| WatershedGraph.BdInfo mrmeshpy.WatershedGraph.bdInfo | ( | self, | |
| GraphEdgeId | e ) |
| float 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] 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 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 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 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 mrmeshpy.WatershedGraph.getBasinFaces | ( | self, | |
| GraphVertId | basin ) |
returns the mesh faces of given basin
| FaceBitSet mrmeshpy.WatershedGraph.getBasinFacesBelowLevel | ( | self, | |
| GraphVertId | basin, | ||
| float | waterLevel ) |
returns the mesh faces of given basin with at least one vertex below given level
| float mrmeshpy.WatershedGraph.getHeightAt | ( | self, | |
| VertId | v ) |
returns height at given vertex or FLT_MAX if the vertex is invalid
| UndirectedEdgeBitSet 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 mrmeshpy.WatershedGraph.getOverflowPoints | ( | self | ) |
returns all overflow points in the graph
| GraphVertId 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 mrmeshpy.WatershedGraph.graph | ( | self | ) |
returns underlying graph where each basin is a vertex
| Vector_GraphVertId_GraphVertId 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 mrmeshpy.WatershedGraph.merge | ( | self, | |
| GraphVertId | v0, | ||
| GraphVertId | v1 ) |
merges basin v1 into basin v0, v1 is deleted after that, returns v0
| GraphVertId mrmeshpy.WatershedGraph.mergeViaBd | ( | self, | |
| GraphEdgeId | bd ) |
merges two basins sharing given boundary, returns remaining basin
| int mrmeshpy.WatershedGraph.numBasins | ( | self | ) |
returns the current number of basins (excluding special "outside" basin)
| GraphVertId mrmeshpy.WatershedGraph.outsideId | ( | self | ) |
returns special "basin" representing outside areas of the mesh
| None mrmeshpy.WatershedGraph.setParentsToRoots | ( | self | ) |
replaces parent of each basin with its computed root; this speeds up following calls to getRootBasin()
| float mrmeshpy.WatershedGraph.totalArea | ( | self | ) |
returns total precipitation area