# ConvexHull.ByPoints Not Working with 2D Points?

**URL:** <https://forum.dynamobim.com/t/convexhull-bypoints-not-working-with-2d-points/33950>\
**Category:** Uncategorized\
**Created:** [March 25, 2019, 8:21pm UTC](https://forum.dynamobim.com/t/convexhull-bypoints-not-working-with-2d-points/33950 "2019-03-25T20:21:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericabbott](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ericabbott/32/68658_2.png) [@ericabbott](https://forum.dynamobim.com/u/ericabbott)\
**Post date:** [March 25, 2019, 8:21pm UTC](https://forum.dynamobim.com/t/convexhull-bypoints-not-working-with-2d-points/33950/1 "2019-03-25T20:21:30Z")

</div>

Good afternoon,

I’m attempting to use the OOTB node ConvexHull.ByPoints with a list of points who’s z values are 0. Here is the error:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/7/a7f29c3b03124dedf31fec33ddbbb61a78c60fce.png)

I translated the Y value so that all points are positive, that did not solve the problem.

Has anyone encountered this or know any solutions? Thank you in advance!

---

<div class="post-metadata">

**Author:** ![ericabbott](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ericabbott/32/68658_2.png) [@ericabbott](https://forum.dynamobim.com/u/ericabbott)\
**Post date:** [March 25, 2019, 8:27pm UTC](https://forum.dynamobim.com/t/convexhull-bypoints-not-working-with-2d-points/33950/2 "2019-03-25T20:27:46Z")

</div>

This node may solve the issue; however, it is not in my springs package for some reason.

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/0/00627c787b818c51be242c4e54dd5f081375324c.png)

---

<div class="post-metadata">

**Author:** ![ericabbott](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ericabbott/32/68658_2.png) [@ericabbott](https://forum.dynamobim.com/u/ericabbott)\
**Post date:** [March 25, 2019, 8:43pm UTC](https://forum.dynamobim.com/t/convexhull-bypoints-not-working-with-2d-points/33950/3 "2019-03-25T20:43:46Z")

</div>

Haven’t got the result I wanted but I solved the issue of getting a 2D Convex Hull. Here is the result (green lines) from this script:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/f/5f122b144973804df51250509e6d8f8aaf6c9817.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/8/98031fe447e55cab38f551a8db8e2caaea6c1109.png)

I am attempting to get model lines create a boundary around the points that don’t already have lines connecting them like my red markup shows. Anyone have any ideas on how to accomplish this?
