# Solid Difference should handle empty lists

**URL:** <https://discourse.mcneel.com/t/solid-difference-should-handle-empty-lists/222117>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [August 25, 2026, 12:55pm UTC](https://discourse.mcneel.com/t/solid-difference-should-handle-empty-lists/222117 "2026-08-25T12:55:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShynnSup](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shynnsup/32/767220_2.png) [@ShynnSup](https://discourse.mcneel.com/u/ShynnSup)\
**Post date:** [August 25, 2026, 12:55pm UTC](https://discourse.mcneel.com/t/solid-difference-should-handle-empty-lists/222117/1 "2026-08-25T12:55:14Z")

</div>

Solid Difference currently fails when the second Brep set is empty:

> **1. Second Brep set is empty**

I think the more useful behavior would be to simply return the original Breps from **A**.

If there’s nothing in **B** to subtract, then the result is just **A**.

This comes up pretty often in parametric definitions where cutters are generated conditionally. An empty cutter list is a valid result, not really an error, and having Solid Difference return nothing forces an unnecessary bypass/check around the component.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/4/7/e47e6b5a7302616d5448e6d5b81f9641575176ae.png)

[Solid Difference Empty.gh](https://discourse.mcneel.com/uploads/short-url/n1YHqPXmc2kpxffnJV53AEJthTR.gh) (17.3 KB)

---

<div class="post-metadata">

**Author:** ![rajeev\_pulari](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rajeev_pulari/32/771401_2.png) [@rajeev\_pulari](https://discourse.mcneel.com/u/rajeev_pulari)\
**Post date:** [August 26, 2026, 12:08pm UTC](https://discourse.mcneel.com/t/solid-difference-should-handle-empty-lists/222117/2 "2026-08-26T12:08:03Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/f/8/9/f891ea586dced2db898a65e3ec6d9c0684fc4af0.png)  
Different branches are seen

---

<div class="post-metadata">

**Author:** ![ShynnSup](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/shynnsup/32/767220_2.png) [@ShynnSup](https://discourse.mcneel.com/u/ShynnSup)\
**Post date:** [August 26, 2026, 12:45pm UTC](https://discourse.mcneel.com/t/solid-difference-should-handle-empty-lists/222117/3 "2026-08-26T12:45:46Z")

</div>

With Clean Tree you are mismatching branches and that produces the wrong boolean differences.
