Geophysical Inversion and Modelling Library v1.5.4
Loading...
Searching...
No Matches
interpolate.h
1/******************************************************************************
2 * Copyright (C) 2006-2024 by the GIMLi development team *
3 * Carsten Rücker carsten@resistivity.net *
4 * *
5 * Licensed under the Apache License, Version 2.0 (the "License"); *
6 * you may not use this file except in compliance with the License. *
7 * You may obtain a copy of the License at *
8 * *
9 * http://www.apache.org/licenses/LICENSE-2.0 *
10 * *
11 * Unless required by applicable law or agreed to in writing, software *
12 * distributed under the License is distributed on an "AS IS" BASIS, *
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
14 * See the License for the specific language governing permissions and *
15 * limitations under the License. *
16 * *
17 ******************************************************************************/
18
19#ifndef _GIMLI_INTERPOLATE__H
20#define _GIMLI_INTERPOLATE__H
21
22#include "gimli.h"
23#include "matrix.h"
24#include <vector>
25
26namespace GIMLI{
27
29DLLEXPORT void interpolate(const Mesh & srcMesh, const RVector & inVec,
30 const R3Vector & destPos, RVector & outVec,
31 bool verbose=false, double fillValue=0.0);
32
34DLLEXPORT RVector interpolate(const Mesh & srcMesh, const RVector & inVec,
35 const R3Vector & destPos,
36 bool verbose=false, double fillValue=0.0);
37
39DLLEXPORT void interpolate(const Mesh & srcMesh, const RVector & inVec,
40 const Mesh & destMesh, RVector & outVec,
41 bool verbose=false, double fillValue=0.0);
42
45DLLEXPORT void interpolate(const Mesh & srcMesh, const std::string & fileName,
46 Mesh & destMesh, bool verbose=false, double fillValue=0.0);
47
49DLLEXPORT RVector interpolate(const Mesh & srcMesh, const RVector & inVec,
50 const RVector & x, const RVector & y,
51 const RVector & z, bool verbose=false, double fillValue=0.0);
52
54DLLEXPORT RVector interpolate(const Mesh & srcMesh, const RVector & inVec,
55 const RVector & x, const RVector & y,
56 bool verbose=false, double fillValue=0.0);
57
59DLLEXPORT RVector interpolate(const Mesh & srcMesh, const RVector & inVec,
60 const RVector & x,
61 bool verbose=false, double fillValue=0.0);
62
66DLLEXPORT void interpolate(const Mesh & srcMesh, Mesh & destMesh,
67 bool verbose=false, double fillValue=0.0);
68
75DLLEXPORT void interpolate(const Mesh & srcMesh, const RMatrix & inMat,
76 const R3Vector & destPos, RMatrix & outMat,
77 bool verbose=false, double fillValue=0.0);
78
82DLLEXPORT void interpolateSurface(const Mesh & srcMesh, Mesh & destMesh,
83 bool verbose=false, double fillValue=0);
84
87DLLEXPORT RVector cellDataToPointData(const Mesh & mesh,
88 const RVector & cellData);
89
90DLLEXPORT void triangleMesh_(const Mesh & mesh, Mesh & tmpMesh);
91
92} // namespace GIMLI
93
94
95#endif // _GIMLI_INTERPOLATE__H
Definition mesh.h:128
GIMLi main namespace for the Geophyiscal Inversion and Modelling Library.
Definition baseentity.h:24
RVector y(const R3Vector &rv)
Definition pos.cpp:114
RVector x(const R3Vector &rv)
Definition pos.cpp:107
RVector z(const R3Vector &rv)
Definition pos.cpp:120
RVector cellDataToPointData(const Mesh &mesh, const RVector &cellData)
Definition interpolate.cpp:259
void interpolateSurface(const Mesh &mesh, Mesh &qmesh, bool verbose, double fillValue)
Definition interpolate.cpp:224
void interpolate(const Mesh &mesh, const RMatrix &vData, const R3Vector &ipos, RMatrix &iData, bool verbose, double fillValue)
Definition interpolate.cpp:28