# Solid difference

**URL:** <https://discourse.mcneel.com/t/solid-difference/220777>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [July 12, 2026, 1:23pm UTC](https://discourse.mcneel.com/t/solid-difference/220777 "2026-07-12T13:23:24Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amirhussein\_Montaze1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/amirhussein_montaze1/32/753438_2.png) [@Amirhussein\_Montaze1](https://discourse.mcneel.com/u/Amirhussein_Montaze1)\
**Post date:** [July 12, 2026, 1:23pm UTC](https://discourse.mcneel.com/t/solid-difference/220777/1 "2026-07-12T13:23:24Z")

</div>

Thank you in advance for your help. I have an outer closed solid and an inner closed solid that is completely enclosed by the outer one. I want to subtract the inner solid from the outer solid, producing a single hollow solid with a cavity equal to the shape of the inner solid while preserving the outer geometry and creating a wall of the desired thickness. As you can see in the attached screenshot, I used two spheres as outer and inner shapes. But ‘Solid difference’ does not work properly.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/6/1/361381b54b20b9d08a1d40759d9871f79be684a4.png)

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [July 12, 2026, 1:35pm UTC](https://discourse.mcneel.com/t/solid-difference/220777/2 "2026-07-12T13:35:30Z")

</div>

If you want to 3D print the object, the easy solution is to have a tiny hole connecting the outer and inner shape.

I Rhino you can use \_NonmanifoldMerge

[NonmanifoldMerge | Rhino 3-D modeling](https://docs.mcneel.com/rhino/8/help/en-us/commands/nonmanifoldmerge.htm?Highlight=manifold)

What do you need this for?

---

<div class="post-metadata">

**Author:** ![Amirhussein\_Montaze1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/amirhussein_montaze1/32/753438_2.png) [@Amirhussein\_Montaze1](https://discourse.mcneel.com/u/Amirhussein_Montaze1)\
**Post date:** [July 12, 2026, 1:42pm UTC](https://discourse.mcneel.com/t/solid-difference/220777/3 "2026-07-12T13:42:10Z")

</div>

Thank you again for your reply. My main goal is to obtain the hollow shape so I can calculate its volume, moment of inertia, and other properties. I used a sphere to express the problem with a simple example; however, the main shape is more complicated.

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [July 12, 2026, 1:51pm UTC](https://discourse.mcneel.com/t/solid-difference/220777/4 "2026-07-12T13:51:53Z")

</div>

In Grasshopper you will either have to subtract the inner volume from the outer volume or if you need the actual geometry you can convert to mesh and then the boolean difference works

---

<div class="post-metadata">

**Author:** ![Amirhussein\_Montaze1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/amirhussein_montaze1/32/753438_2.png) [@Amirhussein\_Montaze1](https://discourse.mcneel.com/u/Amirhussein_Montaze1)\
**Post date:** [July 12, 2026, 2:02pm UTC](https://discourse.mcneel.com/t/solid-difference/220777/5 "2026-07-12T14:02:37Z")

</div>

Thank you, Martin. By using mesh, it works. May I know the logic behind this? I mean, to remove a specific mass from a larger volume where the inner body is completely inside the outer body: after generating the hull shape, it needs to become a mesh, then use “Mesh Difference”?

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [July 12, 2026, 2:08pm UTC](https://discourse.mcneel.com/t/solid-difference/220777/6 "2026-07-12T14:08:21Z")

</div>

I cannot explain any better. Try yourself with NonmanifoldMerge and see what volume you get and compare with the mesh approach.

> [@Amirhussein\_Montaze1](#):
>
> after generating the hull shape, it needs to become a mesh, then use “Mesh Difference”?

Yes, convert the outer and inner shape to mesh and then subtract the inner from the outer

---

<div class="post-metadata">

**Author:** ![Amirhussein\_Montaze1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/amirhussein_montaze1/32/753438_2.png) [@Amirhussein\_Montaze1](https://discourse.mcneel.com/u/Amirhussein_Montaze1)\
**Post date:** [July 12, 2026, 2:18pm UTC](https://discourse.mcneel.com/t/solid-difference/220777/7 "2026-07-12T14:18:19Z")

</div>

Thank you again.

---

<div class="post-metadata">

**Author:** ![dfytz1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dfytz1/32/478701_2.png) [@dfytz1](https://discourse.mcneel.com/u/dfytz1)\
**Post date:** [July 12, 2026, 3:02pm UTC](https://discourse.mcneel.com/t/solid-difference/220777/8 "2026-07-12T15:02:48Z")

</div>

You can achieve what you want with merge breps from rhinocommon. There is command in rhino, and heres code in gh

> [@Shelling a Shape](https://discourse.mcneel.com/t/shelling-a-shape/215577/8):
>
> I am not sure that is helpful here, but thought it was related. You can achieve void inside closed brep without cutting it using brep regions. Using merge breps method (different from append) and brep regions rhino understands what region is finite and what infinite, and allows to choose what regions to leave [MergeBreps.gh](https://discourse.mcneel.com/uploads/short-url/sYiDI2ABbrpKH8LoiA4yeEN7Fyd.gh) (13.9 KB)

> [@Combine multi brep into one in panel](https://discourse.mcneel.com/t/combine-multi-brep-into-one-in-panel/153932/4):
>
> It may be helpful to export data to analysis programs, as suggested in [Rhino documentation](http://docs.mcneel.com/rhino/7/help/en-us/commands/nonmanifoldmerge.htm). I sometimes use this to remap multiple surfaces to CPlane:

---

<div class="post-metadata">

**Author:** ![Amirhussein\_Montaze1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/amirhussein_montaze1/32/753438_2.png) [@Amirhussein\_Montaze1](https://discourse.mcneel.com/u/Amirhussein_Montaze1)\
**Post date:** [July 14, 2026, 2:49am UTC](https://discourse.mcneel.com/t/solid-difference/220777/9 "2026-07-14T02:49:19Z")

</div>

Thank you so much for your help. Your proposed way really solved my problem.🙂

---

<div class="post-metadata">

**Author:** ![dfytz1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dfytz1/32/478701_2.png) [@dfytz1](https://discourse.mcneel.com/u/dfytz1)\
**Post date:** [July 14, 2026, 8:31am UTC](https://discourse.mcneel.com/t/solid-difference/220777/10 "2026-07-14T08:31:51Z")

</div>

Perfect, then you can put solved flag on my answer

---

<div class="post-metadata">

**Author:** ![martinsiegrist](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/martinsiegrist/32/772775_2.png) [@martinsiegrist](https://discourse.mcneel.com/u/martinsiegrist)\
**Post date:** [July 14, 2026, 8:48am UTC](https://discourse.mcneel.com/t/solid-difference/220777/11 "2026-07-14T08:48:08Z")

</div>

Just gotta be careful with the results of the volume evaluation…

[![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/1/b/0/1b08af9cfd0668bf87d1354a14570d02a3f06b36.png)](https://discourse.mcneel.com/t/shelling-a-shape/215577/8)
