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

*** empty log message ***

parent 323171be
No related branches found
No related tags found
No related merge requests found
...@@ -126,6 +126,7 @@ Vertex *Create_Vertex(int Num, double u, double v, gmshSurface *surf, double lc) ...@@ -126,6 +126,7 @@ Vertex *Create_Vertex(int Num, double u, double v, gmshSurface *surf, double lc)
pV->u = u; pV->u = u;
pV->geometry = surf; pV->geometry = surf;
pV->pntOnGeometry = SPoint2(u,v); pV->pntOnGeometry = SPoint2(u,v);
surf->is_projection_surface=true;
return pV; return pV;
} }
...@@ -3069,7 +3070,6 @@ bool SplitCurve(int line_id, List_T *vertices_id, List_T *shapes) ...@@ -3069,7 +3070,6 @@ bool SplitCurve(int line_id, List_T *vertices_id, List_T *shapes)
DeleteShape(c->Typ, c->Num); DeleteShape(c->Typ, c->Num);
List_Delete(new_list); List_Delete(new_list);
List_Delete(rshapes); List_Delete(rshapes);
return true; return true;
} }
......
...@@ -21,12 +21,15 @@ class gmshSurface ...@@ -21,12 +21,15 @@ class gmshSurface
protected: protected:
static std::map<int, gmshSurface*> allGmshSurfaces; static std::map<int, gmshSurface*> allGmshSurfaces;
public: public:
bool is_projection_surface;
virtual ~gmshSurface(){} virtual ~gmshSurface(){}
static void reset() static void reset()
{ {
std::map<int, gmshSurface*>::iterator it = allGmshSurfaces.begin(); std::map<int, gmshSurface*>::iterator it = allGmshSurfaces.begin();
for (; it != allGmshSurfaces.end(); ++it) for (; it != allGmshSurfaces.end(); ++it){
delete it->second; if(!it->second->is_projection_surface)
delete it->second;
}
allGmshSurfaces.clear(); allGmshSurfaces.clear();
}; };
static gmshSurface* getSurface(int tag); static gmshSurface* getSurface(int tag);
...@@ -78,11 +81,13 @@ public: ...@@ -78,11 +81,13 @@ public:
} }
}; };
#include "stdio.h"
class gmshPolarSphere : public gmshSurface class gmshPolarSphere : public gmshSurface
{ {
double r; double r;
SPoint3 o; 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) : r(_r), o(x,y,z) {
}
public: public:
static gmshSurface *NewPolarSphere(int _iSphere, double _x, double _y, double _z, double _r); static gmshSurface *NewPolarSphere(int _iSphere, double _x, double _y, double _z, double _r);
virtual Range<double> parBounds(int i) const virtual Range<double> parBounds(int i) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment