The level set function for the sphere geometry.
The level set function for the sphere geometry
if (
d == 2)
return 26*(pow(x[0],5) - 10*pow(x[0],3)*sqr(x[1])
+ 5*x[0]*pow(x[1],4));
else return 3*sqr(x[0])*x[1] - pow(x[1],3);
}
};
if (
d == 2)
return _p(x)/pow(norm(x),5);
}
}
};
if (
d == 2)
return _f(x)/(25+sqr(
norm(x)));
}
protected:
size_t d;
f _f;
};
see the Float page for the full documentation
see the point page for the full documentation
T norm(const vec< T, M > &x)
norm(x): see the expression page for the full documentation
point operator()(const point &x) const
Float operator()(const point &x) const
point operator()(const point &x) const