mpri-graphics-project/tests/TestImplicitSphere.hpp
Rémi Oudin 9e605b0fec Center is an attribute of ImplicitSurface.
This way the search space for Marching Cubes is way smaller.
2018-02-12 11:37:38 +01:00

13 lines
325 B
C++

#pragma once
#include "../Implicit.hpp"
class TestImplicitSphere: public ImplicitSurface {
public:
TestImplicitSphere(const Point& center, double r):
ImplicitSurface(center), radius(r) {}
virtual double operator()(double x, double y, double z) const;
private:
double radius;
};