algorithmic modeling for Rhino
Hi,
I am looking for a way to create a convex hull in 3D from a set of points as a brep. I searched the forum, but I had the feeling that most posts are quite a few years old, and maybe things changed by then. The most promissing I found was this nice thread:
http://www.grasshopper3d.com/forum/topics/incremental-3d-convex-hul...
But here only a mesh is generated, but since I want to continue working with the hull as brep, I thought there might be an easier way to do that.
Any suggestions?
Thanks very much!
Tags:
Well...
1. After creating random (or with some other logic) points on a brep you'll need some ball pivot (BPA) method (not Delauney at least with regard "solid" results) to triangulate them, say like this:
BPA was invented in IBM Labs long time ago for addressing reverse engineering problems (scans and the likes). If I remember correctly some good Samaritan provided a BPA of some sort some time ago (but this occasionally hangs GH for some reason). In some countries BPA is patented.
2. BPA yields a mesh (open or closed) or more (open) depending on the topology and the search radius.
3. If a brep is the target you can get the mesh faces and define BrepFaces out of them.Then "stitch" (join) them getting an open or closed brep respectively.
4. Or you can use in some script the Brep.CreateFromMesh(mesh, trimmedTriangles) Method.
And regardless BPA matters and if you have a mesh on hand ... this attached does the Mesh > Brep job (read the WARNING).
Depending on the splitDisjoined bool value you get one or many breps in a Tree. The "small" C# removes randomly mesh faces (for fun) if the percentage is < 100.
Boat hulls are best created with curves. Points are really useful only for creating curves to loft or sweep.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by