algorithmic modeling for Rhino
double tmp,tmp1,tmp2,r1,h1;
int index = 0,i = 0;
tmp1 = idea_v / 20;
for(i = 0;i < 30;i++){
index = i;
tmp = vol - idea_v;
tmp = Math.Abs(tmp);
B = tmp;
if(tmp <= tmp1){
A = index;
B = tmp;
}
tmp2 = vol / 2.137137859584893359498;
h1 = Math.Pow(tmp2, -3.0);
h1 = h1 + 1;
r1 = h1 / 0.7;
vol = (22 * r1 * r1 * h1 ) / 21;
}
Tags:
Hi Raja,
is there a question in there?
--
David Rutten
david@mcneel.com
Poprad, Slovakia
A is in an if statement and will only be assigned it is true.
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