Skip to content

Commit 44f98f3

Browse files
committed
[WIP] Adding next todo
1 parent 9a8fcbe commit 44f98f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gempy/modules/mesh_extranction/marching_cubes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ def extract_mesh_for_element(structural_element: StructuralElement,
7171
if mask is not None:
7272
volume = volume * mask
7373

74+
# TODO: We need to pass the mask arrays to the marching cubes to account for discontinuities. The mask array are in InterpOutput too if I remember correctly.
75+
7476
# Extract mesh using marching cubes
7577
verts, faces, _, _ = measure.marching_cubes(
7678
volume=volume,
7779
level=structural_element.scalar_field,
78-
spacing=(regular_grid.dx, regular_grid.dy, regular_grid.dz)
80+
spacing=(regular_grid.dx, regular_grid.dy, regular_grid.dz),
81+
mask=None
7982
)
8083

8184
# Adjust vertices to correct coordinates in the model's extent

0 commit comments

Comments
 (0)