Skip to content
Snippets Groups Projects
Commit 541194ae authored by Jean-François Remacle's avatar Jean-François Remacle
Browse files

*** empty log message ***

parent 4c52e83a
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ Vertex *Create_Vertex(int Num, double u, double v, gmshSurface *surf, double lc)
pV->u = u;
pV->geometry = surf;
pV->pntOnGeometry = SPoint2(u,v);
surf->is_projection_surface=true;
surf->is_parametric_surface=true;
return pV;
}
......
......@@ -79,6 +79,8 @@ gmshSurface *gmshPolarSphere::NewPolarSphere(int iSphere, double x, double y, do
return sph;
}
gmshPolarSphere::gmshPolarSphere(double x, double y, double z, double _r) : r(_r), o(x,y,z) {
}
SPoint3 gmshPolarSphere::point(double parA, double parB) const
{
//stereographic projection from the south pole, origin of the axis
......
......@@ -21,13 +21,14 @@ class gmshSurface
protected:
static std::map<int, gmshSurface*> allGmshSurfaces;
public:
bool is_projection_surface;
//there are points define in this surface parameterization
bool is_parametric_surface;
virtual ~gmshSurface(){}
static void reset()
{
std::map<int, gmshSurface*>::iterator it = allGmshSurfaces.begin();
for (; it != allGmshSurfaces.end(); ++it){
if(!it->second->is_projection_surface)
if(!it->second->is_parametric_surface)
delete it->second;
}
allGmshSurfaces.clear();
......@@ -86,8 +87,7 @@ class gmshPolarSphere : public gmshSurface
{
double r;
SPoint3 o;
gmshPolarSphere(double x, double y, double z, double _r) : r(_r), o(x,y,z) {
}
gmshPolarSphere(double x, double y, double z, double _r);
public:
static gmshSurface *NewPolarSphere(int _iSphere, double _x, double _y, double _z, double _r);
virtual Range<double> parBounds(int i) const
......
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