algorithmic modeling for Rhino
Hi,
I want to make a Voronoi triangulation of points with a boundary of the cylinder.
I tried to follow some examples I have seen on the forum and I can't find what the problem is.
Whenever I make the algorithm, the cylinder becomes a box.
So, I tried to trim the outside curves, but failed as you see.
Pt is the multiple points located inside the cylinder.
Geo is the cylindrical mesh.
How can I fix the algorithm?
p.s. I am NOT doing art thing. So, please do not include some algorithm to make the object look good.
Tags:
Yes it must be a box. Technically the code supports any closed, purely convex shape made up of planar faces, but the component only allows you to specify a box, as that is the only data-type in GH which guarantees those three constraints.
If you want a custom boundary, you'll have to perform a solid intersection after the voronoi component.
Sorry, I can't understand your saying, since my english is not that good.
So, are you saying the work I want to do is not possible ?
I'm just nagging David to make a better Voronoi component for the upcoming Grasshopper2.
But no, it's not possible to do simply right now, so here is an old VB script for "clipped" Voronoi and a quick conversion of a mesh cylinder into a closed NURBS solid to feed it:
Your confusion isn't just English. The learning curve is steep at first.
Thanks, Mr.Willmore.
How did you get the "old Visual Basic script for clipped voronoi" ?
And, why did you try to make it small by a factor of 0.9 ?
Oh, okay, thanks. And I changed a little portion from your Mesh2BrepB.gh to make it proper form for me.
But I have a problem again.
Solution exception:Exception of type 'System.OutOfMemoryException' was thrown. was happened.
Probably my computer is not a good one and it cannot calculate the complex algorithm.
Can your super computer make it through ?
If it can, I should buy a new one...
Two files (stl, igs) are optional, in case you don't have them.
files
At least get more memory, which is cheap. I upgraded from 12GB to 24GB and most of my old problems were fixed.
Here is another version I found. It also works with that Darn Bunny Mesh :)
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