X-Git-Url: https://scm.cri.mines-paristech.fr/git/linpy.git/blobdiff_plain/9431c353bd39a1fbb855580ee34931a07321a0f1..6ec23dc57252ffe01aa60595fc499f580381e4a9:/pypol/geometry.py diff --git a/pypol/geometry.py b/pypol/geometry.py new file mode 100644 index 0000000..d1d6770 --- /dev/null +++ b/pypol/geometry.py @@ -0,0 +1,25 @@ + +from abc import ABC, abstractmethod, abstractproperty + + +__all__ = [ + 'GeometricObject', +] + + +class GeometricObject(ABC): + + @abstractproperty + def symbols(self): + pass + + @property + def dimension(self): + return len(self.symbols) + + @abstractmethod + def aspolyhedron(self): + pass + + def asdomain(self): + return self.aspolyhedron()