Grasshopper

algorithmic modeling for Rhino

Views: 385

Comment

You need to be a member of Grasshopper to add comments!

Comment by Laurent DELRIEU on September 12, 2015 at 2:06am

I put a revision of reaction diffusion on mesh here

The main modification concern speed (parallelization done by Vicente). 

It is interesting to see a 3d print. Next week I will discover 3d print at 3d print show in France Lyon. 

Comment by Hunter F on September 11, 2015 at 6:55pm

Thanks Laurent,

I'm using your "reaction_diffusion_mesh_direction.gh" file with modifications in a user cluster.

And, I don't quite know where to put that code. Does that go in your component or Vicente's C code?

I just use Factor 1.0 to turn off flow lines, I wanted a non-effected ball for this sample. I've used your Reaction Diffusion code to make coral/fingerprint type forms and I'm surprised by the variety of patterns it can make.

Do you happen to have Vicente's script with modifications (tangent/flowlines) that you could share? From this screenshot perhaps?

Comment by Laurent DELRIEU on September 11, 2015 at 1:10pm

Cool to see new implementation, I see that you have no factor bigger than 1. If you use script from Vicente I think it is good to change  that 

neighbours.Add(simulation.particles[j]);

double angle = Vector3d.VectorAngle(simulation.particles[j].point - point, tangent);
angle = Math.Abs(0.5 - angle / Math.PI);
double t = Constrain(simulation.dirFactor);
double weight = angle * t + 0.5 * (1 - t);
weights.Add(weight);
weightTotal += weight;

in that

neighbours.Add(simulation.particles[j]);

double angle = Vector3d.VectorAngle(simulation.particles[j].point - point, tangent);
double t = simulation.dirFactor;
double weight = Math.Sqrt(Math.Sin(angle) * Math.Sin(angle) + t * t * Math.Cos(angle) * Math.Cos(angle));
weights.Add(weight);
weightTotal += weight;

because t less than one will be perpandicular to flowlines and t > 1 parallel to flow. My equation is equivalent to an ellipse. 

I also have done parallel calculation of flowlines. If needed no problem to share. 

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service