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 <MRMesh/MRAggregateFlow.h>

Classes

struct  Flows

Public Member Functions

 FlowAggregator (const Mesh &mesh, const VertScalars &heights)
 prepares the processing of given mesh with given height in each vertex
VertScalars computeFlow (const std::vector< FlowOrigin > &starts, const OutputFlows &out={}) const
VertScalars computeFlow (const std::vector< MeshTriPoint > &starts, const OutputFlows &out={}) const
 same with all amounts equal to 1
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
HashMap< VertId, FlowscomputeFlowsPerBasin (const std::vector< FlowOrigin > &starts) const
HashMap< VertId, FlowscomputeFlowsPerBasin (const std::vector< MeshTriPoint > &starts) const
 same with all amounts equal to 1
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
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: