algorithmic modeling for Rhino
Hi all! In this article (Russian) tell how to get the texture(HilbertCurve) of the image.
Java code -attached. This is very interesting texture in my opinion.
I do not know programming:(
possibly someone interest adapts for GH?
Tags:
Hi,
You can find a lot of code online for fractals and change it a bit to make it work in Grasshopper. I took this one as a base just to show the way.
The problem with all recursive code in grasshopper is that you need to create some sort of container where you can dump all the in-between steps (lines in your case). I usually use a list that I define in the global scope so you van access it from within your recursive function and at the same time in the context of the RunScript subroutine. Just make sure to empty this list when the inputs are changed (otherwise you will add more and more lines). In other cases it makes sense to add a Boolean toggle to clear the content and start over.
Does that make any sense to you?
Hi Marc,
thanks for the def and answer. I'm not a programmer, but I know the basic principles. Unfortunately I do not know how to finish the script to make it as http://habrahabr.ru/post/135344/ . In this post step recursive function depends the brightness of the image and performed in different parts of the picture with different step.
maybe it in the GH ? Use command "image sampler" and upgrade your script?
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