Skip to content

Commit f6ef456

Browse files
committed
fix(example: bug in example notebook for turning shift off
1 parent 7eca208 commit f6ef456

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ build/
99

1010
*.stl
1111
*.obj
12+
*.vtk
1213
*.ipynb
1314
*.nrrd
1415

example.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@
171171
"source": [
172172
"# Find the non-manifold edges\n",
173173
"mender = EdgeMender(mesh)\n",
174-
"mender.repair(shift_distance=0.1 if shift else 0.0)\n",
174+
"mender.repair(shift_distance=0.1 if shift.value else 0.0)\n",
175175
"remaining_non_manifold_edges = mender.find_non_manifold_edges()[2]\n",
176176
"\n",
177177
"# Print the repaired mesh information\n",
178-
"print(f\"Volume: {mesh.volume}\" + (\" (WARNING: Shift applied)\" if shift else \"\"))\n",
178+
"print(f\"Volume: {mesh.volume}\" + (\" (WARNING: Shift applied)\" if shift.value else \"\"))\n",
179179
"print(f\"Watertight: {mesh.is_watertight}\")\n",
180180
"print(f\"Remaining non-manifold edges: {len(remaining_non_manifold_edges)}\")\n",
181181
"\n",

0 commit comments

Comments
 (0)