From 77869487e437b4050f98c28a24db82e1e83a872c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 6 Feb 2019 21:02:21 +0100 Subject: Continue cylinder2d refinement setup encapsulation --- src/refinement/grid2D.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/refinement/grid2D.h') diff --git a/src/refinement/grid2D.h b/src/refinement/grid2D.h index 6cbbf6f..f538850 100644 --- a/src/refinement/grid2D.h +++ b/src/refinement/grid2D.h @@ -147,6 +147,12 @@ public: void forEachGrid(std::function&)>&& f); void forEachGrid(const std::string& id, std::function&,const std::string&)>&& f); + /// Returns the finest grid representing a physical position + /** + * Only works if pos is actually contained in a node of the refinement tree. + **/ + Grid2D& locate(Vector pos); + std::size_t getActiveVoxelN() const; }; -- cgit v1.2.3