I am have been playing with the mesh options in GH. After a while I was able to reproduce a nice implementation from another post to create spaced points in the surface.
I want to create a mesh with Delaunay mesh component but my problem is that I cannot find a clean way to create a mesh that extends only up to the edges. When I connect the points to the component I got something like this:
I usually do something like this (and assuming your first set of points is from dividing a curve, you wont need the interp curve part, I just had to remake the curve boundary as you only provided the points)
Nice! Reason I do the boundary surf / ray method is sometimes I have a shape with internal holes and the triangles in them are often still pretty regular so the edge way misses them. And also so I don’t have to mess with the slider when shape changes.
Yeah, it’s rare that one doesn’t have the boundary curves (I find). I usually just check for face center curve containment in these cases. Another approach that we didn’t cover is the ball pivot algorithm, I think @Petras_Vestartas recently made an implementation available as well if recall (for meshing large point clouds). That’s probably pretty overkill in 2D though, but might be relevant.
I usually just check for face center curve containment in these cases.
Yes only reason I switched to rays is because the meshes I’m using these days are so dense and the containment takes ages in Gh. The ray is always so fast. In this case, I think it doesn’t matter either way.
Nice @Dani_Abalde dunno how that slipped by me but you will still need to adjust A depending on the mesh yea? and what about conditions with intended holes (that is my usual situation, although I know not the situation of this specific post).
Yea that. Here is my usual kind of situation where alphashape and edge length fails because mesh in holes is pretty similar to the ones not in the holes, and the same goes for faces out of the boundary.
This just my situation though that I found rays pretty robust. I am rarely dealing with uniformish faces as the mesh faces or verts are then moved up or down to result in 2.5D texture patterns.
Definitely there are many ways to get the answer and I really appreciate everyone sharing their ways of solving the problem.
Given that we are still talking about meshes does anyone has a robust way to consider single points in the mesh creation? The entire reason why I started looking at mesh creation in GH using Delaunay was because it is robust and easy enough to create triangular meshes given any point you have in the geometry.
For example here I have the same previous example but here I am adding some random lines and points that represent columns. For Structural analysis purposes it is very important to have a point where the columns intersects with the surface be part of the mesh.
Using the workflows previously shown the points can be easily added therefore it is relatively easy to add the column points as part of the mesh.
Where this gets really tricky at least for me is when you want to create a quad mesh instead of a triangular mesh. I was testing the new Quad Remesh and I found that the tool is pretty robust and the mesh is pretty nice and uniform, the only drawback that I found was that I cannot add points to the definition to take them into account to create the mesh.
Does anyone has a workflow to deal with this having quad mesh. I know Karamba has an awesome component that lets you consider points to create meshes but it is only for triangular meshes. Quad Mesh.gh (17.8 KB)
Here’s one way to take the result from QuadRemesh and some input points and snap the closest vertices, then relax to keep the mesh quality snap_verts_quadremesh.gh (10.0 KB)
After noticing SuperDelaunay I tried it out but I cannot get the alpha shape to include a hole in a planar mesh…
Here I am creating a polygon with a scaled polygon at its centre and using the polygons to create points for the SuperDelaunay. I can’t get a hole in the middle though…
Interestingly (for some) the SuperDelaunay doesn’t work for polygons where vertices lie on the Y axis (which forces me to call into question the “Super” status of this Delaunay component and suggest VeryGoodDelaunay might be more appropriate?)…