discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Array question

MV
Maurice van Peursem
Sat, Dec 3, 2016 11:16 PM

I want to pass an array of points to a module, like this:

myMod([[1,2],[3,4]])

In my module I've got a double loop (for(x=[:]) for(y=[:])) and when
x and y get to a point in my array, I want to do omit something; I
want to test if [x,y] is in the array. How do I accomplish that, or
is it not possible?

Maurice

I want to pass an array of points to a module, like this: myMod([[1,2],[3,4]]) In my module I've got a double loop (for(x=[:]) for(y=[:])) and when x and y get to a point in my array, I want to do omit something; I want to test if [x,y] is in the array. How do I accomplish that, or is it not possible? Maurice