# Surface Toolbox bug

**URL:** https://discourse.slicer.org/t/surface-toolbox-bug/19679
**Category:** Support
**Created:** [September 15, 2021, 1:02am UTC](https://discourse.slicer.org/t/surface-toolbox-bug/19679 "2021-09-15T01:02:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)
#### Post date: [September 15, 2021, 1:02am UTC](https://discourse.slicer.org/t/surface-toolbox-bug/19679/1 "2021-09-15T01:02:35Z")

</div>

The decimate tool in the Surface Toolbox produces the same output with or without the “Boundary deletion” checkbox selected. On debugging, it looks like there’s a typo in the parameter name here:

> <https://github.com/Slicer/SlicerSurfaceToolbox/blob/362684dced4d3202f3947ee47ac662110a4405b9/SurfaceToolbox/SurfaceToolbox.py#L537>

Which should be consistent with the definition here:

> <https://github.com/Slicer/SlicerSurfaceToolbox/blob/362684dced4d3202f3947ee47ac662110a4405b9/SurfaceToolbox/SurfaceToolbox.py#L331>

Changing the name on line 537 resolves the issue. I can submit a pull request with this change if this looks correct.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [September 15, 2021, 1:12am UTC](https://discourse.slicer.org/t/surface-toolbox-bug/19679/2 "2021-09-15T01:12:28Z")

</div>

Good catch. Yes, please send a pull request (keep `decimationBoundaryDeletion`). Thank you!
