2018-02-11 20:23:07 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../Implicit.hpp"
|
|
|
|
|
|
|
|
class TestImplicitSphere: public ImplicitSurface {
|
|
|
|
public:
|
|
|
|
TestImplicitSphere(const Point& center, double r):
|
2018-02-12 11:37:38 +01:00
|
|
|
ImplicitSurface(center), radius(r) {}
|
2018-02-11 20:23:07 +01:00
|
|
|
virtual double operator()(double x, double y, double z) const;
|
|
|
|
|
2018-02-13 18:42:15 +01:00
|
|
|
virtual Point location_hint() const;
|
|
|
|
|
2018-02-11 20:23:07 +01:00
|
|
|
private:
|
|
|
|
double radius;
|
|
|
|
};
|