Sorry for the noob question. I’m trying to make a hole at the top of my mesh in grasshopper. I’ve been looking for a way to put a point at the upper most z point but can’t seem to figure out how to make that happen. I’m sure there’s an easy way to do this but I’m kinda lost. Thank you in advance!
With what little I know about meshes, I would guess there is already a point there? So sorting the DeMesh (Deconstruct Mesh) ‘V’ (Vertices) by ‘Z’ should do the trick?
Posting your geometry at the very least, preferably with some effort at GH code, will always give people a better chance to answer constructively.
Intersection of the mesh with its bounding box? Then sort the points by Z…
This for some weird reason makes a vertical line of points off to the side of the mesh. The points seem unrelated to my mesh.
I tried doing this but didn’t realize I could sort the points by Z. How can I make this happen?
Without your geometry, I’m out of here! I won’t beg for it.
3. Attach minimal versions of all the relevant files
CupKnob.3dm (256.0 KB)
Oh… Sorry about that.
In the bounding box of the mesh, the position of the top face (for example the center or any corner) is the highest point
that sounds right.
You need to find intersection of the plane from this point and the mesh to find the exact point coordinates
yes. That’s right. I just am unclear on how to choose the highest plane of the bounding box so I can find that intersection.
Get the box corners, the last 4 outputs will be the top of the box corners, use any one of them as the origin of your plane for example.
OK… but it seems that I’m having issues understanding how to isolate any one of them. How would I isolate the top one?
Is there any reason my first reply wouldn’t work? It’s so much easier:
The object in your file is a polysurface and not a mesh.
You can convert it into a mesh and then the deconstruct mesh and sort by Z method would work fine.
If you want to stick with the polysurface, it is more complicated.
Yes. I converted it to a mesh in grasshopper as one of the first nodes I used. I’ve been referring to it as a mesh but I guess I should have been more clear about that.
Would have made sense to post your Grasshopper file with the polysurface internalised instead of the Rhino file…
highest_point.gh (167.9 KB)
You’re right. Things feel a little all over the place but I’ve attached what I have here. I’ve just been trying a few different things and there might be some extra stuff in there. Also, I’ve hollowed out my volume as one of the first steps.
hollowAndLattice.gh (11.6 KB)
This worked! Thank you! Took me a sec to find all the nodes by picture but it was good practice. Thank you again!
Well, I just realized that I could have downloaded your script instead of looking at the photo.