Skip to content
Snippets Groups Projects
Commit 557a43e3 authored by Emilie Marchandise's avatar Emilie Marchandise
Browse files

No commit message

No commit message
parent 8e8faee1
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include "discreteFace.h" #include "discreteFace.h"
#include "eigenSolver.h" #include "eigenSolver.h"
#include "multiscaleLaplace.h" #include "multiscaleLaplace.h"
//#include "rbf.h"
static void fixEdgeToValue(GEdge *ed, double value, dofManager<double> &myAssembler) static void fixEdgeToValue(GEdge *ed, double value, dofManager<double> &myAssembler)
{ {
...@@ -687,8 +688,9 @@ bool GFaceCompound::parametrize() const ...@@ -687,8 +688,9 @@ bool GFaceCompound::parametrize() const
return paramOK; return paramOK;
} }
void GFaceCompound::setParam(std::map<MVertex*, SPoint3> rbf_param) const{ void GFaceCompound::setParam(std::map<MVertex*, SPoint3> rbf_param) {//, rbf *myRBF){
//_rbf = myRBF;
coordinates = rbf_param; coordinates = rbf_param;
} }
...@@ -1676,6 +1678,13 @@ GPoint GFaceCompound::point(double par1, double par2) const ...@@ -1676,6 +1678,13 @@ GPoint GFaceCompound::point(double par1, double par2) const
if(!oct) parametrize(); if(!oct) parametrize();
if (_mapping == RBF){
double x, y,z;
//_rbf->UVStoXYZ(par1, par2,x,y,z);
//printf("XYZ =%g %g %g \n", x,y,z);
//exit(1);
//return GPoint(x,y,z);
}
double U,V; double U,V;
double par[2] = {par1,par2}; double par[2] = {par1,par2};
GFaceCompoundTriangle *lt; GFaceCompoundTriangle *lt;
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "GEdgeCompound.h" #include "GEdgeCompound.h"
#include "meshGFaceOptimize.h" #include "meshGFaceOptimize.h"
#include "linearSystem.h" #include "linearSystem.h"
//#include "rbf.h"
#define AR_MAX 5 //maximal geometrical aspect ratio #define AR_MAX 5 //maximal geometrical aspect ratio
...@@ -50,6 +51,7 @@ class GFaceCompoundTriangle { ...@@ -50,6 +51,7 @@ class GFaceCompoundTriangle {
}; };
class Octree; class Octree;
//class rbf;
class GFaceCompound : public GFace { class GFaceCompound : public GFace {
public: public:
...@@ -57,8 +59,9 @@ class GFaceCompound : public GFace { ...@@ -57,8 +59,9 @@ class GFaceCompound : public GFace {
typedef enum {HARMONIC=1,CONFORMAL=2, CONVEXCOMBINATION=3, MULTISCALE=4, RBF=5} typeOfMapping; typedef enum {HARMONIC=1,CONFORMAL=2, CONVEXCOMBINATION=3, MULTISCALE=4, RBF=5} typeOfMapping;
typedef enum {UNITCIRCLE, SQUARE} typeOfIsomorphism; typedef enum {UNITCIRCLE, SQUARE} typeOfIsomorphism;
void computeNormals(std::map<MVertex*, SVector3> &normals) const; void computeNormals(std::map<MVertex*, SVector3> &normals) const;
void setParam(std::map<MVertex*, SPoint3> rbf_param) const; void setParam(std::map<MVertex*, SPoint3> rbf_param); //, rbf *myRBF);
protected: protected:
//rbf *_rbf;
simpleFunction<double> *ONE; simpleFunction<double> *ONE;
simpleFunction<double> *MONE; simpleFunction<double> *MONE;
std::list<GFace*> _compound; std::list<GFace*> _compound;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment