# Problem with creating surface from points

**URL:** <https://discourse.mcneel.com/t/problem-with-creating-surface-from-points/105546>\
**Category:** Grasshopper\
**Created:** [July 12, 2020, 2:24pm UTC](https://discourse.mcneel.com/t/problem-with-creating-surface-from-points/105546 "2020-07-12T14:24:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![holjman.s](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/holjman.s/32/509745_2.png) [@holjman.s](https://discourse.mcneel.com/u/holjman.s)\
**Post date:** [July 12, 2020, 2:24pm UTC](https://discourse.mcneel.com/t/problem-with-creating-surface-from-points/105546/1 "2020-07-12T14:24:19Z")

</div>

Hi!

I’m trying to create a surface from points. I’ve generated contour lines from an area which I’ve turned into a mesh and then projected points on using a boundary box. However when trying to create a surface from the points I get an error that says: “A point in the grid is null. Filting operation aborted.”.

What am I doing wrong? All help is appreciated!

 ![Problem with Surface from points](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/d/4/d4ab21f9e773096be0039217443d509d093349b5.png) [Surface from points.gh](https://discourse.mcneel.com/uploads/short-url/4fMtOGtqXTNeodGTrysZLGE0JP0.gh) (842.8 KB)

---

<div class="post-metadata">

**Author:** ![603419608](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/603419608/32/487406_2.png) [@603419608](https://discourse.mcneel.com/u/603419608)\
**Post date:** [July 14, 2020, 6:20am UTC](https://discourse.mcneel.com/t/problem-with-creating-surface-from-points/105546/2 "2020-07-14T06:20:30Z")

</div>

Hi Holjman

This error is because the “Mesh | Ray” component returned a null value.So you need to replace the points where there is no intersection, like this.

 ![1234](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/7/e/7ea2db537a34f31b0bcd5e2140e898e99268c191.jpeg)

---

<div class="post-metadata">

**Author:** ![holjman.s](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/holjman.s/32/509745_2.png) [@holjman.s](https://discourse.mcneel.com/u/holjman.s)\
**Post date:** [July 14, 2020, 2:51pm UTC](https://discourse.mcneel.com/t/problem-with-creating-surface-from-points/105546/3 "2020-07-14T14:51:21Z")

</div>

Thank you for your reply!

I tried your solution and it worked like a charm!

Thanks a bunch!
