A point in the grid is null. Fitting operation aborted (Again)

Hi, I know this question has appeared a few time, but I still don’t understand some solutions posted in other threads. Could anyone please help with my particular case?



1.I used the common method to generate surface from contour lines: Break contours to vertices, mesh ray with divided bounding box surface, and finally Surface from points.
2. The last step doesn’t work and show 'A point in the grid is null. Fitting operation aborted '.
my model and gh script are as follows.
model file
Topo-1.gh (4.8 MB)

Thank you!

This fails because your surface is larger than the mesh.

Look at the top left corner. Some surface points cannot be projected because there is no mesh above the points.

Either fix your mesh by manipulating the end point of a contour or decrease the size of the surface.

Topo-1_internalised.gh (4.8 MB)

I internalised the inputs in the Grasshopper definition so the Google Drive download isn’t required.

1 Like

Your ‘Bounding Box’ curve appears to be incorrect.

Used code from the first link above with your contours:


Topo_2024Feb1a.gh (4.8 MB)

1 Like

Thank you so much! it works!

1 Like

Thank you! Your codes work very well!
And yes, I think your Boundary Box is a correct way to do it. I used a curve as the ‘bounding box’ just as following a tutorial on Youtube.
You guys are amazing and so helpful!
Cheers!

Under-sizing the base surface slightly as @martinsiegrist suggests avoids the edge artifacts you see in my model, but how much to under-size is a judgement call.

1 Like

Thank you so much for your passionate answer!