Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mel script with diamond checker board question tia sal2

3 views
Skip to first unread message

temp

unread,
Oct 2, 2007, 12:56:57 AM10/2/07
to
Greetings all

I have a mel script that works at making diamond shapes across and down..I would like it to also have a diamond shape
where the gaps are located in between ...I think I need another for loop but I'm not sure if I need another variable.

int $i;
int $j;
for ($i =0; $i <4; $i++) {
for ($j=0; $j<4; $j++) {

polyCube;
move -r ($j*1.414) 0 ($i*1.414); //diamond
rotate -r -os 0 -45 0;

/* The diagonal of a square with a base of 1 is 1.414
or square root of 2, or a 45 degree angle */
}
}
tia sal2

0 new messages