Skip to content

Commit e0c59fd

Browse files
committed
fix fieldlines bounding box
1 parent 79ecead commit e0c59fd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ngsolve_webgpu/cf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,10 @@ def __init__(
407407
super().__init__(cyl, None, None)
408408
self.scale_mode = ShapeRenderer.SCALE_Z
409409

410+
def get_bounding_box(self):
411+
pmin, pmax = self.mesh.ngmesh.bounding_box
412+
return ([pmin[0], pmin[1], pmin[2]], [pmax[0], pmax[1], pmax[2]])
413+
410414
def update(self, options):
411415
from ngsolve.webgui import FieldLines
412416

0 commit comments

Comments
 (0)