algorithmic modeling for Rhino
etc...
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
pManager.Register_StringParam("out2", "out2", "pumping stuff in here");
}
protected override void SolveInstance(IGH_DataAccess DA)
{
bool toggle = false;
string output = "starting \n ending as well.";
DA.SetData(0, output);
}
Tags:
pManager.Register_BooleanParam("TOGGLE", "ON/OFF", "Toggle a definition restart.", false);
pManager.Register_DoubleParam("Maximum Speed", "MAXS", "Maximum speed the boid can reach.", 1.5);
pManager.Register_DoubleParam("Maximum Force", "MAXF", "Maximum force w/h which the boid can turn.", 3);
pManager.Register_DoubleParam("Separation Factor", "SEPF", "Flock separation factor.", (double) 0);
pManager.Register_DoubleParam("Alignement Factor", "ALNF", "Flock speed alignement factor.", (double) 0);
pManager.Register_DoubleParam("Cohesion Factor", "COHF", "Flock cohesion factor.", (double) 0);
pManager.Register_IntegerParam("Number of Boids", "NBDS", "Number of boids to be spawned in the system.", 50);
pManager.Register_IntegerParam("Tail Size", "TSZ", "Size of the tail the boids leave behind.", 50);
//pManager.Register_BRepParam("Obstacles", "OBS", "Environment obstacles.", GH_ParamAccess.list);
pManager.Register_DoubleParam("Obstacles power", "OBSP", "How hard should a boid steer away from obstacles", 2);
//pManager.Register_PointParam("Start points", "SPTS", "Start points - where the boids will spawn from.", GH_ParamAccess.list);
//pManager.Register_PointParam("Attractors", "ATTS", "Attractors - boids will converge towards these targets.", GH_ParamAccess.list);
pManager.Register_DoubleParam("Attractor power", "ATTP", "How hard should a boid steer towards an attarctor.", 3);
//pManager.Register_IntervalParam("World boundaries", "BNDS", "World boundaries. If a boid gets out of the cube defined by this interval it will be killed.");
List obstacles = new List();
if (DA.GetDataList("OBS", obstacles)) DA.SetData(0, 30);
else DA.SetData(0, 10);
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
© 2024 Created by Scott Davidson. Powered by