# Unable to calculate volume on a closed polysurface Rhino 6 Latest Update

**URL:** <https://discourse.mcneel.com/t/unable-to-calculate-volume-on-a-closed-polysurface-rhino-6-latest-update/95008>\
**Category:** Rhino for Windows\
**Tags:** volumetric-analysis\
**Created:** [January 19, 2020, 1:03am UTC](https://discourse.mcneel.com/t/unable-to-calculate-volume-on-a-closed-polysurface-rhino-6-latest-update/95008 "2020-01-19T01:03:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gary2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/gary2/32/492991_2.png) [@gary2](https://discourse.mcneel.com/u/gary2)\
**Post date:** [January 19, 2020, 1:03am UTC](https://discourse.mcneel.com/t/unable-to-calculate-volume-on-a-closed-polysurface-rhino-6-latest-update/95008/1 "2020-01-19T01:03:28Z")

</div>

I get a volume calculation on other parts of this object but this doesn’t seem to want to work although it seems to be a closed polysurface. Never run into this before…  
Forgive the inelegance of the construction, I’m trying to quick-fix someone else’s work. 🙂

[Unable to calculate volume.3dm](https://discourse.mcneel.com/uploads/short-url/dMTzoKWFGCYaLERgxT1aW8yYE1k.3dm) (982.4 KB)

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [January 19, 2020, 1:29am UTC](https://discourse.mcneel.com/t/unable-to-calculate-volume-on-a-closed-polysurface-rhino-6-latest-update/95008/2 "2020-01-19T01:29:43Z")

</div>

Hi Gary - the culprits are these:

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/8/f/8f135b86c13fa99aa04666bd6a3fc9478892ce60.png)

Rhino is unable to calculate the area of these surfaces - not sure why yet, but to fix, do this:

`ExtractSrf` those faces and the ones immediately below.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/e/a/ea0741873626e2aa484ed49fb60ce4953991d802.png)

`ShrinkTrimmedSrf` and then `UntrimBorder` the top skinny ones. That gets them pretty well set up (Area works) but the lower edges are slightly out of tolerance to the next edges (I suspect this is the problem) so:

1. `ChangeDegree` in U to 1 on the upper surfaces. This will ensure that the surfaces stay ‘ruled’ when we move the edges slightly with `MatchSrf` next-- probably not needed at this scale but may as well.
2. `MatchSrf` the bottom edges of the upper surfaces to the top edges of the lower ones for _position_, with ‘Preserve other end’ also set to ‘position’, and Average _not_ checked.
3. `Join` it all back up.

-Pascal

---

<div class="post-metadata">

**Author:** ![gary2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/gary2/32/492991_2.png) [@gary2](https://discourse.mcneel.com/u/gary2)\
**Post date:** [January 19, 2020, 4:51pm UTC](https://discourse.mcneel.com/t/unable-to-calculate-volume-on-a-closed-polysurface-rhino-6-latest-update/95008/3 "2020-01-19T16:51:20Z")

</div>

Hey Pascal,

What were you doing working during happy hour on a Saturday? (As I sit here on Sunday morning…working.) 🙂

And sincerely, I appreciate your timely response.

I’ll run your routine, I’m just curious how you arrived (what diagnostic you used) to know these surfaces were the issue?

My Best,

G

---

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [January 20, 2020, 5:18am UTC](https://discourse.mcneel.com/t/unable-to-calculate-volume-on-a-closed-polysurface-rhino-6-latest-update/95008/4 "2020-01-20T05:18:00Z")

</div>

> [@gary2](#):
>
> how you arrived

Yeah - that is the problem - because I know that Volume failures are almost always attributable to Area failures on the individual faces in an object, I made a script that tests Area and selects faces for which it fails. It seems to me Volume needs to just do this as a built in tool, it’s too much to ask users to be able to figure it out… I’ll see if I can prod the right person to get that going, I think it would save some angst.

[https://mcneel.myjetbrains.com/youtrack/issue/RH-56611](https://mcneel.myjetbrains.com/youtrack/issue/RH-56611)

-Pascal

---

<div class="post-metadata">

**Author:** ![gary2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/gary2/32/492991_2.png) [@gary2](https://discourse.mcneel.com/u/gary2)\
**Post date:** [February 4, 2020, 4:30pm UTC](https://discourse.mcneel.com/t/unable-to-calculate-volume-on-a-closed-polysurface-rhino-6-latest-update/95008/5 "2020-02-04T16:30:10Z")

</div>

I’m remiss in not adding this reply sooner but I wanted to let you know how I solved the problem another way. Isolating those surfaces, I DupEdge all edges. Then, after joining the vertical edge curves I used EdgeSrf to recreate the surfaces using only the outermost horizontal edges. This replicated the surface structure with fewer surfaces. And when I used these new surfaces to replace the old ones, volumetric analysis worked fine once those new surfaces were joined into the bigger geometry.  
Thank you Pascal!
