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
15
class
MElementOctree
{
16
private
:
17
Octree
*
_octree
;
18
GModel
*
_gm
;
19
std::vector<MElement *>
_elems
;
20
21
public
:
22
MElementOctree
(
GModel
*);
23
MElementOctree
(
const
std::vector<MElement *> &);
24
~MElementOctree
();
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
src
geo
MElementOctree.h
Generated by
1.8.18