X-Git-Url: https://scm.cri.mines-paristech.fr/git/linpy.git/blobdiff_plain/25ce908cffca380f930182a77c1e5a4491042a1c..2de96003a48ae1ed91c853f38c72374a832824de:/pypol/domains.py diff --git a/pypol/domains.py b/pypol/domains.py index 1c400bd..122d428 100644 --- a/pypol/domains.py +++ b/pypol/domains.py @@ -392,7 +392,7 @@ class Domain(GeometricObject): coordinates[symbol] = coordinate points.append(Point(coordinates)) return points - + @classmethod def _polygon_inner_point(cls, points): symbols = points[0].symbols @@ -445,9 +445,9 @@ class Domain(GeometricObject): return sorted(points, key=angles.get) def faces(self): - """ - Returns the vertices of the faces of a polyhedra. - """ + """ + Returns the vertices of the faces of a polyhedra. + """ faces = [] for polyhedron in self.polyhedra: vertices = polyhedron.vertices() @@ -529,9 +529,10 @@ class Domain(GeometricObject): return False def subs(self, symbol, expression=None): - """ - Subsitute the given value into an expression and return the resulting expression. - """ + """ + Subsitute the given value into an expression and return the resulting + expression. + """ polyhedra = [polyhedron.subs(symbol, expression) for polyhedron in self.polyhedra] return Domain(*polyhedra)