Contours to Surface: Invalid Delaunay & Null Points SrfGrid

Ciao,

Two part question:

  1. Am trying to put together the simplest script possible that can turn any set of contours and site boundaries into a finished topographical surface (drag & drop simple, so can used quickly over and over again for different sites). However, I am having an issue with splitting the delauny mesh as it turns out invalid and therefore I am unable to conclude the last step (however if you switch the mesh and the splitter it works?). :thinking:

  2. At the bottom half of the script I want to have a solution for a surface reacreated from projected points. Everything looks right to me all the way to the end but when the point list and U parameter enter the Surface from Points component i get “A point in the grid is null”. Not sure how to fix that. :confused:

Files:
P-241_shadows.3dm (11.0 MB)
Contours to Surface 2.gh (26.0 KB)

Appreciate the help in advance,

F

Splitting meshes is never fun. Sounds like you need to clean up the mesh first.
Maybe try Land Kit BETA for Grasshopper, soon to be a set of free core features (and paid pro features).

Nothing is internalized:

Hi Martin, strange! I have reattached them to the original post above.

1 Like

Hi @Adam_M , thanks for the tip! Gave it a try, no dups in vertices. Replying also to @chrislandau, i tried to run a few tests like checking for dup surfaces as well and smoothening the mesh to check for any irregularities and so far (to me) everything checks out so i must be missing something. :thinking:

However, if i remove null points from the list feeding the surface output then im unable to create one.

One thing after another.

Adding a Cull Duplicates does help with your mesh. It is now a valid mesh.

Instead of one single curve for the trimming, I would suggest four individual curves. I internalized these inputs and the contours too.

Contours to Surface 2 internalized inputs.gh (247.4 KB)

1 Like

Here is an option for the surface output: Contours to Surface 2_v2.gh (31.6 KB)

Note: I uploaded the wrong file first, this should be correct now.

1 Like

You could use Quad Remesh to create surfaces …

1 Like

Seems to work! However, I noticed you internalised 4 curves for the boundary (was originally 1), when i reinsert the original boundary it will not split mesh.

I think you have more control working with four individual surfaces. The narrow connections cause problems with the remeshing …

contours_subd_brep.gh (240.3 KB)

Works for the surface! @Adam_M

Now im just having trouble splitting the mesh. @martinsiegrist :grin: I just noticed my drawing is in mm instaed of m, do you think it might be a tolerance issue?

Contours to Surface.gh (30.7 KB)
P-241_shadows.3dm (11.1 MB)

Not if you’re using my definition

let me check the new one :pray:

Well that works great! Have never used Quadmesh, thanks for the enlightenment. :grinning:

You are totally right, 4 curves works much better. However, would you be able to explain why 1 boundary was not working when it came to splitting? I presume it has something to do with how small the connections were between the 4 original boundaries.

With a Fit Curve and meshing the brep, mesh split work fine with your single curve.

But now the Quad Remesh fails. That’s why I would use individual curves.

contours_split_mesh.gh (236.6 KB)

2 Likes

Thank you Martin!!

1 Like