[OpenSCAD] 2D array

Maurin Donneaud maurin.box at gmail.com
Tue Jun 5 20:48:38 CEST 2012


Bonjour !

How can I parse a 2D array ?
Something like that !?

:-(

/////////////////////////////////////////////////////////////////
for(i = [0 : 3]) // rows
{
	for(j = [0 : 3]) // columns
	{
	  a[ i, j];
	}
}

a = [
	[0,1,1,0],
	[1,0,0,1],
	[1,1,1,1],
	[1,0,0,1]
	];


Regards,

Maurn



More information about the OpenSCAD mailing list