mpri-graphics-project/Implicit.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
354 B
C++

#pragma once
#include "common_structures.hpp"
class ImplicitSurface {
public:
virtual double operator() (double x, double y, double z) const = 0;
double operator()(const Point& pt) const;
Point getCenter() { return center;}
protected:
Point center;
ImplicitSurface(Point _center) : center(_center) {}
};