# Offset Polysurface problem

**URL:** <https://discourse.mcneel.com/t/offset-polysurface-problem/143197>\
**Category:** Scripting\
**Tags:** windows, developer\
**Created:** [May 30, 2022, 8:51am UTC](https://discourse.mcneel.com/t/offset-polysurface-problem/143197 "2022-05-30T08:51:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ahmedwael.si](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ahmedwael.si/32/765296_2.png) [@ahmedwael.si](https://discourse.mcneel.com/u/ahmedwael.si)\
**Post date:** [May 30, 2022, 8:51am UTC](https://discourse.mcneel.com/t/offset-polysurface-problem/143197/1 "2022-05-30T08:51:24Z")

</div>

Hello,  
Is there an equivalent function to Grasshopper’s Cap Holes Ex in RhinoCommon? I only found Brep.CapPlanarholes.  
I am trying to create a solid offsetted Brep using a GH custom component, calling the Brep. CreateOffsetBrep method, choosing true for solid. The result is an open Brep. When I plug it into Cap Holes ex, it produces an invalid Brep.  
This is why I was looking for the equivalent method in RhinoCommon to try to debug it, or else see if there could be another way to Debug this?  
Thanks a lot in advance!

---

_[View the full topic](https://discourse.mcneel.com/t/offset-polysurface-problem/143197)._
