Re: init



bob@xxxxxxxxxxxxxx wrote:
why won't this work?

float boxcenter[3];

if (nodectr == 0)
boxcenter = {centerpt[0] + halfwidth/2.0, centerpt[1] + halfwidth/2.0,
centerpt[2] + halfwidth/2.0};

You could do

float boxcenter[ARR_SIZE];

if (nodectr == 0)
{
int n;
for (n = 0; n < ARR_SIZE; n++)
boxcenter[n] = centerpt[n] + halfwidth / 2.0;
}

which is a little more work, but not much. This operation is much
simpler in langauges that can perform a map operation as others have
shown.

.