GridPointGenerator2.hpp
Go to the documentation of this file.
1 // This code is based on Jet framework.
2 // Copyright (c) 2018 Doyub Kim
3 // CubbyFlow is voxel-based fluid simulation engine for computer games.
4 // Copyright (c) 2020 CubbyFlow Team
5 // Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
6 // AI Part: Dongheon Cho, Minseo Kim
7 // We are making my contributions/submissions to this project solely in our
8 // personal capacity and are not conveying any rights to any intellectual
9 // property of any third parties.
10 
11 #ifndef CUBBYFLOW_GRID_POINT_GENERATOR2_HPP
12 #define CUBBYFLOW_GRID_POINT_GENERATOR2_HPP
13 
15 
16 namespace CubbyFlow
17 {
22 {
23  public:
31  void ForEachPoint(
32  const BoundingBox2D& boundingBox, double spacing,
33  const std::function<bool(const Vector2D&)>& callback) const override;
34 };
35 
37 using GridPointGenerator2Ptr = std::shared_ptr<GridPointGenerator2>;
38 } // namespace CubbyFlow
39 
40 #endif
void ForEachPoint(const BoundingBox2D &boundingBox, double spacing, const std::function< bool(const Vector2D &)> &callback) const override
Invokes callback function for each regular grid points inside boundingBox.
N-D axis-aligned bounding box class.
Definition: BoundingBox.hpp:46
Definition: Matrix.hpp:27
Abstract base class for 2-D point generator.
Definition: PointGenerator2.hpp:28
Definition: pybind11Utils.hpp:20
2-D regular-grid point generator.
Definition: GridPointGenerator2.hpp:21
std::shared_ptr< GridPointGenerator2 > GridPointGenerator2Ptr
Shared pointer type for the GridPointGenerator2.
Definition: GridPointGenerator2.hpp:37