MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::FlowAggregator Class Reference

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

#include <MRAggregateFlow.h>

Classes

struct  Flows
 

Public Member Functions

MRMESH_API FlowAggregator (const Mesh &mesh, const VertScalars &heights)
 prepares the processing of given mesh with given height in each vertex
 
MRMESH_API VertScalars computeFlow (const std::vector< FlowOrigin > &starts, const OutputFlows &out={}) const
 
MRMESH_API VertScalars computeFlow (const std::vector< MeshTriPoint > &starts, const OutputFlows &out={}) const
 same with all amounts equal to 1
 
MRMESH_API VertScalars computeFlow (size_t numStarts, const std::function< MeshTriPoint(size_t)> &startById, const std::function< float(size_t)> &amountById, const std::function< const FaceBitSet *(size_t)> &regionById, const OutputFlows &out={}) const
 general version that supplies starts in a functional way
 
MRMESH_API HashMap< VertId, FlowscomputeFlowsPerBasin (const std::vector< FlowOrigin > &starts) const
 
MRMESH_API HashMap< VertId, FlowscomputeFlowsPerBasin (const std::vector< MeshTriPoint > &starts) const
 same with all amounts equal to 1
 
MRMESH_API HashMap< VertId, FlowscomputeFlowsPerBasin (size_t numStarts, const std::function< MeshTriPoint(size_t)> &startById, const std::function< float(size_t)> &amountById) const
 general version that supplies starts in a functional way
 
MRMESH_API UndirectedEdgeBitSet computeCatchmentDelineation () const
 

Detailed Description

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


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