Skip to content

Commit 8db324c

Browse files
author
Lachlan Grose
committed
add bb origin to surfaces. only relevant when using non 0,0,0 local origin.
1 parent fc27219 commit 8db324c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

LoopStructural/utils/_surface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def fit(
145145
values = np.zeros(verts.shape[0]) + isovalue
146146
# need to add both global and local origin. If the bb is a buffer the local
147147
# origin may not be 0
148-
verts += self.bounding_box.global_origin
148+
verts += self.bounding_box.global_origin+self.bounding_box.origin
149149
surfaces.append(
150150
Surface(
151151
vertices=verts,

0 commit comments

Comments
 (0)