From 136034d2bbac12e329dcc0ad9d1c760d6d342794 Mon Sep 17 00:00:00 2001 From: Philipp Holl Date: Sat, 14 Dec 2024 23:19:34 +0100 Subject: [PATCH] [geom] Fix Cylinder.face_centers --- phi/geom/_cylinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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