MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.FlowAggregator Class Reference

Classes

class  Flows
 

Public Member Functions

None __init__ (self, Mesh mesh, VertScalars heights)
 
None __init__ (self, FlowAggregator arg0)
 
UndirectedEdgeBitSet computeCatchmentDelineation (self)
 
VertScalars computeFlow (self, std_vector_FlowOrigin starts, OutputFlows out='MR::OutputFlows{}')
 
VertScalars computeFlow (self, std_vector_MeshTriPoint starts, OutputFlows out='MR::OutputFlows{}')
 
VertScalars computeFlow (self, int numStarts, func_MeshTriPoint_from_unsigned_long startById, func_float_from_unsigned_long amountById, func_TaggedBitSet_FaceTag_const_from_unsigned_long regionById, OutputFlows out='MR::OutputFlows{}')
 
phmap_flat_hash_map_Id_VertTag_FlowAggregator_Flows computeFlowsPerBasin (self, std_vector_FlowOrigin starts)
 
phmap_flat_hash_map_Id_VertTag_FlowAggregator_Flows computeFlowsPerBasin (self, std_vector_MeshTriPoint starts)
 
phmap_flat_hash_map_Id_VertTag_FlowAggregator_Flows computeFlowsPerBasin (self, int numStarts, func_MeshTriPoint_from_unsigned_long startById, func_float_from_unsigned_long amountById)
 

Detailed Description

Generated from:  MR::FlowAggregator

this class can track multiple flows and find in each mesh vertex the amount of water reached it

Constructor & Destructor Documentation

◆ __init__() [1/2]

None meshlib.mrmeshpy.FlowAggregator.__init__ ( self,
Mesh mesh,
VertScalars heights )
prepares the processing of given mesh with given height in each vertex

◆ __init__() [2/2]

None meshlib.mrmeshpy.FlowAggregator.__init__ ( self,
FlowAggregator arg0 )
Implicit copy constructor.

Member Function Documentation

◆ computeCatchmentDelineation()

UndirectedEdgeBitSet meshlib.mrmeshpy.FlowAggregator.computeCatchmentDelineation ( self)
finds the edges on the mesh that divides catchment basin
(every triangle is attributed to the final destination point based on the path originated from its centroid)

◆ computeFlow() [1/3]

VertScalars meshlib.mrmeshpy.FlowAggregator.computeFlow ( self,
int numStarts,
func_MeshTriPoint_from_unsigned_long startById,
func_float_from_unsigned_long amountById,
func_TaggedBitSet_FaceTag_const_from_unsigned_long regionById,
OutputFlows out = 'MR::OutputFlows{}' )
general version that supplies starts in a functional way

◆ computeFlow() [2/3]

VertScalars meshlib.mrmeshpy.FlowAggregator.computeFlow ( self,
std_vector_FlowOrigin starts,
OutputFlows out = 'MR::OutputFlows{}' )
tracks multiple flows
\\param starts the origin of each flow (should be uniformly sampled over the terrain)
\\return the flow reached each mesh vertex

◆ computeFlow() [3/3]

VertScalars meshlib.mrmeshpy.FlowAggregator.computeFlow ( self,
std_vector_MeshTriPoint starts,
OutputFlows out = 'MR::OutputFlows{}' )
same with all amounts equal to 1

◆ computeFlowsPerBasin() [1/3]

phmap_flat_hash_map_Id_VertTag_FlowAggregator_Flows meshlib.mrmeshpy.FlowAggregator.computeFlowsPerBasin ( self,
int numStarts,
func_MeshTriPoint_from_unsigned_long startById,
func_float_from_unsigned_long amountById )
general version that supplies starts in a functional way

◆ computeFlowsPerBasin() [2/3]

phmap_flat_hash_map_Id_VertTag_FlowAggregator_Flows meshlib.mrmeshpy.FlowAggregator.computeFlowsPerBasin ( self,
std_vector_FlowOrigin starts )
tracks multiple flows
\\param starts the origin of each flow (should be uniformly sampled over the terrain)
\\return the flows grouped by the final destination vertex

◆ computeFlowsPerBasin() [3/3]

phmap_flat_hash_map_Id_VertTag_FlowAggregator_Flows meshlib.mrmeshpy.FlowAggregator.computeFlowsPerBasin ( self,
std_vector_MeshTriPoint starts )
same with all amounts equal to 1

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