MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstFlowAggregator Class Reference
Inheritance diagram for mrmeshpy.ConstFlowAggregator:

Classes

class  ConstFlows
class  Flows

Public Member Functions

 __init__ (self, *args, **kwargs)
UndirectedEdgeBitSet computeCatchmentDelineation (self)
VertScalars computeFlow (self, Const_std_vector_FlowOrigin starts, ConstOutputFlows out=...)
VertScalars computeFlow (self, Const_std_vector_MeshTriPointT_float starts, ConstOutputFlows out=...)
VertScalars computeFlow (self, int numStarts, Const_func_MeshTriPointT_float_from_unsigned_long startById, Const_func_float_from_unsigned_long amountById, Const_func_TypedBitSet_Id_FaceTag_const_ptr_from_unsigned_long regionById, ConstOutputFlows out=...)
phmap_flat_hash_map_Id_VertTag_FlowAggregator_Flows_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_FlowAggregator_Flows computeFlowsPerBasin (self, Const_std_vector_FlowOrigin starts)
phmap_flat_hash_map_Id_VertTag_FlowAggregator_Flows_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_FlowAggregator_Flows computeFlowsPerBasin (self, Const_std_vector_MeshTriPointT_float starts)
phmap_flat_hash_map_Id_VertTag_FlowAggregator_Flows_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_FlowAggregator_Flows computeFlowsPerBasin (self, int numStarts, Const_func_MeshTriPointT_float_from_unsigned_long startById, Const_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__()

mrmeshpy.ConstFlowAggregator.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstFlowAggregator, mesh: meshlib.mrmeshpy.ConstMesh, heights: meshlib.mrmeshpy.ConstVertScalars) -> None

prepares the processing of given mesh with given height in each vertex

2. __init__(self: meshlib.mrmeshpy.ConstFlowAggregator, arg0: meshlib.mrmeshpy.ConstFlowAggregator) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstFlowAggregator, : meshlib.mrmeshpy.ConstFlowAggregator) -> None

Member Function Documentation

◆ computeCatchmentDelineation()

UndirectedEdgeBitSet mrmeshpy.ConstFlowAggregator.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 mrmeshpy.ConstFlowAggregator.computeFlow ( self,
Const_std_vector_FlowOrigin starts,
ConstOutputFlows out = ... )
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() [2/3]

VertScalars mrmeshpy.ConstFlowAggregator.computeFlow ( self,
Const_std_vector_MeshTriPointT_float starts,
ConstOutputFlows out = ... )
same with all amounts equal to 1

◆ computeFlow() [3/3]

VertScalars mrmeshpy.ConstFlowAggregator.computeFlow ( self,
int numStarts,
Const_func_MeshTriPointT_float_from_unsigned_long startById,
Const_func_float_from_unsigned_long amountById,
Const_func_TypedBitSet_Id_FaceTag_const_ptr_from_unsigned_long regionById,
ConstOutputFlows out = ... )
general version that supplies starts in a functional way

◆ computeFlowsPerBasin() [1/3]

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() [2/3]

◆ computeFlowsPerBasin() [3/3]


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