Fix: ImplicitSurface.operator() is pure virtual

This commit is contained in:
Théophile Bastian 2018-02-11 20:19:26 +01:00
parent 8d11d49b81
commit 4a3a1b9d76
2 changed files with 7 additions and 4 deletions

View file

@ -0,0 +1,5 @@
#include "Implicit.hpp"
double ImplicitSurface::operator()(const Point& pt) const {
return operator()(pt.x, pt.y, pt.z);
}

View file

@ -4,8 +4,6 @@
class ImplicitSurface {
public:
virtual double operator() (double x, double y, double z) const;
double operator()(const Point& pt) const {
return operator()(pt.x, pt.y, pt.z);
}
virtual double operator() (double x, double y, double z) const = 0;
double operator()(const Point& pt) const;
};