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)> ®ionById, const OutputFlows &out={}) const |
| general version that supplies starts in a functional way | |
| MRMESH_API HashMap< VertId, Flows > | computeFlowsPerBasin (const std::vector< FlowOrigin > &starts) const |
| MRMESH_API HashMap< VertId, Flows > | computeFlowsPerBasin (const std::vector< MeshTriPoint > &starts) const |
| same with all amounts equal to 1 | |
| MRMESH_API HashMap< VertId, Flows > | computeFlowsPerBasin (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 |
this class can track multiple flows and find in each mesh vertex the amount of water reached it