How Can We Help?
Infection Spread
Infection Spread
Needs a Solver to allow spread to calculate over time
Sets the Infection – Attrib Wrangle
@infected =1; // Pipe in a selection of point(s)
@Cd = {1,0,0}; // Turns the selection red
Spreads the infection – Attrib Wrangle
if(@infected == 0){
float search = ch('search'); // make sure to create a var form search
int spnts[] = nearpoints(0,@P,search,6); // the 6 is the max amount of points searched for
// nearpoints(0,@P,search); // removing the 6 looks for ALL points
int pt;
foreach(pt;spnts){
if (point(0,'infected',pt)==1){
@infected = 1;
@Cd = {1,0,0};
}
}
}