M
Mahadev Ittina
$array_floor = []
for i in (0..7)
for n in (0..8)
$array_floor [n,i] = [i*var1,0.0,n*var2]
end
end
I am trying to create a array, which basically forms a grid, which is
evenly spaced in a Cartesian plane. The spacing is var1 and var2, in the
x and z directions. Plan is to copy columns on these 'points', which is
done in Sketchup using Ruby API scripts. So there are going to 8 and 9
columns respectively, and there are points when n = i, where there will
be common columns.
This is not working out for me very well. It makes sense to me, somehow
it doesn't seem to be working (it returns with no values).Any
suggestions? And If I want floors to this array, i.e. making it 3D, how
will it work?
for i in (0..7)
for n in (0..8)
$array_floor [n,i] = [i*var1,0.0,n*var2]
end
end
I am trying to create a array, which basically forms a grid, which is
evenly spaced in a Cartesian plane. The spacing is var1 and var2, in the
x and z directions. Plan is to copy columns on these 'points', which is
done in Sketchup using Ruby API scripts. So there are going to 8 and 9
columns respectively, and there are points when n = i, where there will
be common columns.
This is not working out for me very well. It makes sense to me, somehow
it doesn't seem to be working (it returns with no values).Any
suggestions? And If I want floors to this array, i.e. making it 3D, how
will it work?