diff --git a/phi/geom/_cylinder.py b/phi/geom/_cylinder.py index b68c93cbb..45e02f19b 100644 --- a/phi/geom/_cylinder.py +++ b/phi/geom/_cylinder.py @@ -159,7 +159,7 @@ def faces(self) -> 'Geometry': @property def face_centers(self) -> Tensor: - fac = wrap([-.5, 0, .5], dual(shell='bottom,top,lateral')) + fac = wrap([-.5, .5, 0], dual(shell='bottom,top,lateral')) return self.center + fac * self.depth * self.up @property