# Bounding Curves

**URL:** <https://discourse.mcneel.com/t/bounding-curves/182837>\
**Category:** Grasshopper\
**Tags:** windows\
**Created:** [May 27, 2024, 9:15am UTC](https://discourse.mcneel.com/t/bounding-curves/182837 "2024-05-27T09:15:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![channelmisai](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/channelmisai/32/578075_2.png) [@channelmisai](https://discourse.mcneel.com/u/channelmisai)\
**Post date:** [May 27, 2024, 9:15am UTC](https://discourse.mcneel.com/t/bounding-curves/182837/1 "2024-05-27T09:15:06Z")

</div>

How to bound external boundary surrounding the curves like the attached image.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/5/3/3533035705143fe9a7f7d54e6d6af941b3523090.png) yellow part need to be eliminated.  
[BoundingBox.gh](https://discourse.mcneel.com/uploads/short-url/jSdma6U3dKAolJLCRT38LLe1OAx.gh) (4.7 KB)

---

<div class="post-metadata">

**Author:** ![wim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/wim/32/747482_2.png) [@wim](https://discourse.mcneel.com/u/wim)\
**Post date:** [May 27, 2024, 10:12am UTC](https://discourse.mcneel.com/t/bounding-curves/182837/2 "2024-05-27T10:12:56Z")

</div>

> [@channelmisai](#):
>
> yellow part need to be eliminated.

Why?  
Or, why not also the green parts?  
 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/6/2/a/62a2c0e248524e561b5b295b8af659da76d55a9b.png)

If you can answer that question, you will probably be able to solve this yourself…  
-wim

---

<div class="post-metadata">

**Author:** ![channelmisai](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/channelmisai/32/578075_2.png) [@channelmisai](https://discourse.mcneel.com/u/channelmisai)\
**Post date:** [May 27, 2024, 10:16am UTC](https://discourse.mcneel.com/t/bounding-curves/182837/3 "2024-05-27T10:16:00Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/e/c/dec176fa0569bade8759ee8aff718835d1abb14d.png)  
I’m still trying to find out answer for that too. Even if the green part is removed also I’m okay with that.

Why?: i need outermost boundary curve to create a surface out of it

---

<div class="post-metadata">

**Author:** ![AndersDeleuran](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/andersdeleuran/32/476683_2.png) [@AndersDeleuran](https://discourse.mcneel.com/u/AndersDeleuran)\
**Post date:** [May 27, 2024, 10:31am UTC](https://discourse.mcneel.com/t/bounding-curves/182837/4 "2024-05-27T10:31:53Z")

</div>

You could compute the [convex hull](https://en.wikipedia.org/wiki/Convex_hull):

 ![2024-05-27 12_30_24-Grasshopper - ConvexHull](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/a/e/aae8f97b9502adbb70c447f3a58e823ed4d35fff.png)  
[ConvexHull.gh](https://discourse.mcneel.com/uploads/short-url/itMG2Vx3ivpTTBi2TXfjbSQUhPK.gh) (6.3 KB)

---

<div class="post-metadata">

**Author:** ![channelmisai](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/channelmisai/32/578075_2.png) [@channelmisai](https://discourse.mcneel.com/u/channelmisai)\
**Post date:** [May 27, 2024, 10:35am UTC](https://discourse.mcneel.com/t/bounding-curves/182837/5 "2024-05-27T10:35:01Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/e/4/7e49252ed468bf4e92beea360a888efee5e41288.png)  
I’m looking for something like this but without offsetting i need it with original curve boundary.

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/a/2/9/a29c3f6967609b1527bb1e5d0ff3d50dd659ffe5.png)  
More like this either if its forming orange color shape or red is okay

---

<div class="post-metadata">

**Author:** ![Rajeev2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rajeev2/32/631520_2.png) [@Rajeev2](https://discourse.mcneel.com/u/Rajeev2)\
**Post date:** [May 27, 2024, 11:44am UTC](https://discourse.mcneel.com/t/bounding-curves/182837/6 "2024-05-27T11:44:55Z")

</div>

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/3/4/33492d2b82f3a921041a10d698cdb74250a17560.png)  
[ConvexHull\_revA.gh](https://discourse.mcneel.com/uploads/short-url/qZ8Kb5pXOrFAyVfk247TzxyBH4U.gh) (17.7 KB)

---

<div class="post-metadata">

**Author:** ![channelmisai](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/channelmisai/32/578075_2.png) [@channelmisai](https://discourse.mcneel.com/u/channelmisai)\
**Post date:** [May 27, 2024, 12:55pm UTC](https://discourse.mcneel.com/t/bounding-curves/182837/7 "2024-05-27T12:55:32Z")

</div>

What if I rotate it and move here and there. That time it doesn’t works right. Because of the plane.

 ![1000025138](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/9/6/d9628bc03608b1efa0923221952dd885c3d7af44.jpeg)

---

<div class="post-metadata">

**Author:** ![laurent\_delrieu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/laurent_delrieu/32/601605_2.png) [@laurent\_delrieu](https://discourse.mcneel.com/u/laurent_delrieu)\
**Post date:** [May 27, 2024, 1:15pm UTC](https://discourse.mcneel.com/t/bounding-curves/182837/8 "2024-05-27T13:15:59Z")

</div>

Hello  
I think you have not yet clearly defined the limit of what you really want.  
First you have curves aligned with X and Y and now everything is rotated.  
If a group of building is aligned and not the other what are you expecting ?  
If you have a U shaped buildings, what do you want ?  
If a group in one rectangle what do you expect ?

It seems you are after a sort of minimization of aligned bounding box. The criteria to choose 1, 2 3 bounding box could be a ratio of area.

But whatever it is not a so simple exercice for a tool. Human on that are still better.

---

<div class="post-metadata">

**Author:** ![Rajeev2](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rajeev2/32/631520_2.png) [@Rajeev2](https://discourse.mcneel.com/u/Rajeev2)\
**Post date:** [May 27, 2024, 1:21pm UTC](https://discourse.mcneel.com/t/bounding-curves/182837/9 "2024-05-27T13:21:13Z")

</div>

how did you Rotate the curves use the same reference to create the bounding box whatever u need

---

<div class="post-metadata">

**Author:** ![channelmisai](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/channelmisai/32/578075_2.png) [@channelmisai](https://discourse.mcneel.com/u/channelmisai)\
**Post date:** [June 12, 2024, 10:18am UTC](https://discourse.mcneel.com/t/bounding-curves/182837/10 "2024-06-12T10:18:09Z")

</div>

Some how achieved this

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/e/0/8/e082d28883c46da9af2eadab34377d1efb6ee89b.jpeg)  
[BoundaryShape\_v2.gh](https://discourse.mcneel.com/uploads/short-url/8pNX0SD9cYaJKD1vzBVXoCiRhkM.gh) (32.3 KB)

Now im looking create something like this. L shape around given curve.  
[bounding problem.3dm](https://discourse.mcneel.com/uploads/short-url/2JLnfPQuGLSBfaDmVJvvHQcf4Jl.3dm) (134.2 KB)

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/d/9/8d9328cfac00fa72d11a77c2a5c517ff33a2ef90.png)

 ![image (12)](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/d/7/3/d733fe6191c9d89bd97eba26abb44a2e61e959df.png)  
 ![image (11)](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/e/5/2e50254239d8e6a82bc579593ab3385a6fabf6c5.png)  
My trys but im stuck. Any help on approaching this?

---

<div class="post-metadata">

**Author:** ![ajarindia](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ajarindia/32/496286_2.png) [@ajarindia](https://discourse.mcneel.com/u/ajarindia)\
**Post date:** [June 13, 2024, 7:44am UTC](https://discourse.mcneel.com/t/bounding-curves/182837/11 "2024-06-13T07:44:06Z")

</div>

Hey,

Check this out:

Script is uncleaned. But it works perfectly.  
[LBoundary\_BVR.gh](https://discourse.mcneel.com/uploads/short-url/dSJgKfIU5ZsreddhYYLgHHd38if.gh) (53.4 KB)

Cheers,  
BVR
