MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.WatershedGraph:

Classes

class  BasinInfo
class  BdInfo
class  ConstBasinInfo
class  ConstBdInfo
class  ConstOverflowPoint
class  OverflowPoint

Public Member Functions

None __init__ (self, ConstMesh mesh, ConstVector_int_FaceId face2basin, int numBasins)
None __init__ (self, ConstWatershedGraph arg0)
WatershedGraph.BasinInfo basinInfo (self, ConstGraphVertId v)
WatershedGraph.ConstBasinInfo basinInfo (ConstWatershedGraph self, ConstGraphVertId v)
WatershedGraph.BdInfo bdInfo (self, ConstGraphEdgeId e)
WatershedGraph.ConstBdInfo bdInfo (ConstWatershedGraph self, ConstGraphEdgeId e)
GraphVertId merge (self, ConstGraphVertId v0, ConstGraphVertId v1)
GraphVertId mergeViaBd (self, ConstGraphEdgeId bd)
None setParentsToRoots (self)
Public Member Functions inherited from mrmeshpy.ConstWatershedGraph
 __init__ (self, *args, **kwargs)
float computeBasinVolume (self, ConstGraphVertId basin, float waterLevel)
tuple[GraphEdgeId, float] findLowestBd (self)
GraphVertId flowsFinallyTo (self, ConstGraphVertId v, bool exceptOutside=False)
GraphVertId flowsTo (self, ConstGraphVertId v)
Vector_FaceBitSet_GraphVertId getAllBasinFaces (self, bool joinOverflowBasins=False)
FaceBitSet getBasinFaces (self, ConstGraphVertId basin)
FaceBitSet getBasinFacesBelowLevel (self, ConstGraphVertId basin, float waterLevel)
float getHeightAt (self, ConstVertId v)
UndirectedEdgeBitSet getInterBasinEdges (self, bool joinOverflowBasins=False)
std_vector_WatershedGraph_OverflowPoint getOverflowPoints (self)
GraphVertId getRootBasin (self, ConstGraphVertId v)
ConstGraph graph (self)
Vector_GraphVertId_GraphVertId iniBasin2Tgt (self, bool joinOverflowBasins=False)
int numBasins (self)
GraphVertId outsideId (self)
float totalArea (self)

Static Public Member Functions

None __init__ (*args, **kwargs)

Detailed Description

Generated from:  MR::WatershedGraph

graphs representing rain basins on the mesh

Constructor & Destructor Documentation

◆ __init__() [1/3]

None mrmeshpy.WatershedGraph.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/3]

None mrmeshpy.WatershedGraph.__init__ ( self,
ConstMesh mesh,
ConstVector_int_FaceId face2basin,
int numBasins )
constructs the graph from given mesh, heights in z-coordinate, and initial subdivision on basins

◆ __init__() [3/3]

None mrmeshpy.WatershedGraph.__init__ ( self,
ConstWatershedGraph arg0 )
Implicit copy constructor.

Member Function Documentation

◆ basinInfo() [1/2]

WatershedGraph.ConstBasinInfo mrmeshpy.WatershedGraph.basinInfo ( ConstWatershedGraph self,
ConstGraphVertId v )
returns data associated with given basin

Reimplemented from mrmeshpy.ConstWatershedGraph.

◆ basinInfo() [2/2]

WatershedGraph.BasinInfo mrmeshpy.WatershedGraph.basinInfo ( self,
ConstGraphVertId v )
returns data associated with given basin

Reimplemented from mrmeshpy.ConstWatershedGraph.

◆ bdInfo() [1/2]

WatershedGraph.ConstBdInfo mrmeshpy.WatershedGraph.bdInfo ( ConstWatershedGraph self,
ConstGraphEdgeId e )
returns data associated with given boundary between basins

Reimplemented from mrmeshpy.ConstWatershedGraph.

◆ bdInfo() [2/2]

WatershedGraph.BdInfo mrmeshpy.WatershedGraph.bdInfo ( self,
ConstGraphEdgeId e )
returns data associated with given boundary between basins

Reimplemented from mrmeshpy.ConstWatershedGraph.

◆ merge()

GraphVertId mrmeshpy.WatershedGraph.merge ( self,
ConstGraphVertId v0,
ConstGraphVertId v1 )
merges basin v1 into basin v0, v1 is deleted after that, returns v0

◆ mergeViaBd()

GraphVertId mrmeshpy.WatershedGraph.mergeViaBd ( self,
ConstGraphEdgeId bd )
merges two basins sharing given boundary, returns remaining basin

◆ setParentsToRoots()

None mrmeshpy.WatershedGraph.setParentsToRoots ( self)
replaces parent of each basin with its computed root;
this speeds up following calls to getRootBasin()

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