gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
PViewAsSimpleFunction.cpp
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
#include "
PView.h
"
7
#include "
PViewData.h
"
8
#include "
PViewAsSimpleFunction.h
"
9
10
double
PViewEvaluator::operator()
(
double
x,
double
y,
double
z
)
const
11
{
12
PViewData
*pvd =
_pv
->
getData
();
13
double
value;
14
bool
found = pvd->
searchScalar
(x, y,
z
, &value,
_step
);
15
// printf("found %d %g %g %g %g\n",found,x,y,value,x*x+y*y);
16
if
(found)
return
value;
17
return
1.e22;
18
}
PViewEvaluator::operator()
double operator()(double x, double y, double z) const
Definition:
PViewAsSimpleFunction.cpp:10
PView.h
PViewData.h
PViewEvaluator::_step
int _step
Definition:
PViewAsSimpleFunction.h:15
PViewAsSimpleFunction.h
PView::getData
PViewData * getData(bool useAdaptiveIfAvailable=false)
Definition:
PView.cpp:233
PViewData::searchScalar
bool searchScalar(double x, double y, double z, double *values, int step=-1, double *size=nullptr, int qn=0, double *qx=nullptr, double *qy=nullptr, double *qz=nullptr, bool grad=false, int dim=-1)
Definition:
PViewData.cpp:322
PViewData
Definition:
PViewData.h:29
PViewEvaluator::_pv
PView * _pv
Definition:
PViewAsSimpleFunction.h:14
z
const double z
Definition:
GaussQuadratureQuad.cpp:56
src
post
PViewAsSimpleFunction.cpp
Generated by
1.8.18