Skip to content
Snippets Groups Projects
Commit c54d673f authored by Laurent Van Migroet's avatar Laurent Van Migroet
Browse files

added protected for data members to inherit

parent 5ff49ce9
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,7 @@ public:
class gLevelsetSphere : public gLevelsetPrimitive
{
protected:
double xc, yc, zc, r;
public:
gLevelsetSphere (const double &x, const double &y, const double &z, const double &R, int &tag) : gLevelsetPrimitive(tag), xc(x), yc(y), zc(z), r(R) {}
......@@ -105,6 +106,7 @@ public:
class gLevelsetPlane : public gLevelsetPrimitive
{
protected:
double a, b, c, d;
public:
// define the plane _a*x+_b*y+_c*z+_d, with outward normal (a,b,c)
......@@ -211,6 +213,7 @@ public:
class gLevelsetReverse : public gLevelset
{
protected:
const gLevelset *ls;
public:
gLevelsetReverse (const gLevelset *p) : ls(p){}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment