Skip to content

Commit

Permalink
[geom] Fix Cylinder.face_centers
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Dec 14, 2024
1 parent 01ef86e commit e2e943b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phi/geom/_cylinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2e943b

Please sign in to comment.