I am just making a simple random definition of points here and in the input I have made a “seed” which apparently affects the random pattern.
What is puzzling me is that this seed value isn’t included anywhere in the code but still taking an effect, can anyone enlighten me a bit as to why this is so?
sorry for the silly question! Thank you in advance!
Hi, the random generator is initialized everytime you re-run the code using the current time as the seed. That’s how it works.
So, what you are seeing is simply that everytime you moved the slider, you get a new collection of points, just it.
If the random generator is really initialized using the seed value, you should get exactly the same points when you move the slider to another value and move back to the origninal value. I assume you do not.
In general, the seed is used to get exatly the same numerical sequence regardless of how many times you ran your code. Good luck!
Thank you Masaki! Just a simple step to bring the real seed into the script thanks!
Yes it will be very useful thank you very much for the information!! ご丁寧にありがとうございます!これからもよろしくお願いします👋🏻
Thanks for sharing the information. If I want to set that the seed to seed distance will always be equal like 20, 25, 30 mm. Is it possible in this script. Thanks
Thanks Masaki san for sharing the script. Actually, I want to set equal Voronoi size, which can be possible by setting the equal seed distance from nearby seeds, which will share the boundary with each other.
I may not be understanding what you are saying properly, but if you want to make the spacing between the center points of Voronoi uniform, you could do something like Kangaroo’s Circle Packing and create Voronoi by obtaining the center points of the Voronoi.
In case of Voronoi mesh in solid cylinder, there are some outlines (yellow color) formed at surface. This is from 3D CAD files. Is it possible to form Voronoi mesh in Cylinder without such outlines? Thanks.