Skip to content

Commit

Permalink
changed indexing and building of support matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
FSchwar authored and j042 committed Apr 11, 2024
1 parent 4a6ac30 commit 73dd83b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions splinepy/io/gismo.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def _array_to_text(array, is_matrix, as_b64):
field_mask = _np.arange(len(multipatch.fields))
supports = _np.array(
[
(i, k, 0)
for k in field_mask
(i, j, 0)
for j, k in enumerate(field_mask)
for i, v in enumerate(multipatch.fields[k].patches)
if v is not None
],
Expand Down Expand Up @@ -115,7 +115,7 @@ def _array_to_text(array, is_matrix, as_b64):
for id, spline in enumerate(multipatch.patches):
if fields_only:
# Check supports
support = supports[supports[:, 0] == id, 1]
support = field_mask[supports[supports[:, 0] == id, 1]]
if support.size == 0:
continue
id_count += 1
Expand Down

0 comments on commit 73dd83b

Please sign in to comment.