gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
MElementOctree.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #ifndef MELEMENT_OCTREE
7 #define MELEMENT_OCTREE
8 
9 #include <vector>
10 
11 class Octree;
12 class GModel;
13 class MElement;
14 
16 private:
19  std::vector<MElement *> _elems;
20 
21 public:
23  MElementOctree(const std::vector<MElement *> &);
25  MElement *find(double x, double y, double z, int dim = -1,
26  bool strict = false) const;
27  std::vector<MElement *> findAll(double x, double y, double z, int dim,
28  bool strict = false) const;
29 };
30 #endif
MElementOctree::_elems
std::vector< MElement * > _elems
Definition: MElementOctree.h:19
GModel
Definition: GModel.h:44
MElementOctree::_octree
Octree * _octree
Definition: MElementOctree.h:17
MElementOctree
Definition: MElementOctree.h:15
MElement
Definition: MElement.h:30
MElementOctree::MElementOctree
MElementOctree(GModel *)
Definition: MElementOctree.cpp:92
MElementOctree::~MElementOctree
~MElementOctree()
Definition: MElementOctree.cpp:143
Octree
Definition: OctreeInternals.h:51
MElementOctree::find
MElement * find(double x, double y, double z, int dim=-1, bool strict=false) const
Definition: MElementOctree.cpp:205
MElementOctree::_gm
GModel * _gm
Definition: MElementOctree.h:18
z
const double z
Definition: GaussQuadratureQuad.cpp:56
MElementOctree::findAll
std::vector< MElement * > findAll(double x, double y, double z, int dim, bool strict=false) const
Definition: MElementOctree.cpp:145