<retrosenator>
you want to generate the coordinates
<Claws61821>
When you call "polygon" you can use variables to feed it complex generated lists of points using `for`, but I haven't found a way to make it accept iterated lists of paths as opposed to pregenerated lists of paths.
<retrosenator>
iterated how? sorry
<retrosenator>
i'm trying to understand what is wrong with pregenerated lists
<Claws61821>
I want to generate the lists (paths) that tell "polygon" which point-lists of coordinates to call, so that I can generate holes at regular distances as I lengthen the polygon and extruded polyhedron without getting non-manifold errors. Pregenerated path-lists have to be called one at a time and only account for as many paths as you populate by
<Claws61821>
hand.
rogeliodh has quit [Ping timeout: 255 seconds]
<Claws61821>
I've tried using "for" several times, I've tried using nonary symbols as well. Neither is acceptable code within the "polygon" function
<Claws61821>
or rather, they are acceptable within the "points" subsection, but not within "paths"
rogeliodh has joined #openscad
<teepee>
not sure what you mean, e.g. this is a polygon square with a smaller square cut out polygon([[8, 8], [8, -8], [-8, -8], [-8, 8], [5, 5], [5, -5], [-5, -5], [-5, 5]], [[0,1,2,3], [7,6,5,4]]);
<Claws61821>
in "polygon{... , paths =", I can call vector "paths[0][5]", for example, but I can't call anything like "for (i=[0:cutouts]) paths[0][i]"
<teepee>
sure, you just need to add the [ ] around
<Claws61821>
I tried that before, but I'll try it again...
<teepee>
e.g. echo([for (i = [3:6]) [i, i*2]]);
castawayc has quit [Ping timeout: 260 seconds]
snaked has quit [Read error: Connection reset by peer]
snaked has joined #openscad
castawayc has joined #openscad
<Claws61821>
Ah. I misremembered. It *does* allow that, but it then seems to simply ignore them. I went from having four evenly-spaced holes to having none, with no error message. And yes, I flushed the cache.
EkpyroticFrood has quit [Quit: So long, and thanks for all the fish.]
EkpyroticFrood has joined #openscad
<teepee>
cutouts may need the ponts in reverse order
<teepee>
points too :)
EkpyroticFrood has quit [Client Quit]
EkpyroticFrood has joined #openscad
EkpyroticFrood has quit [Client Quit]
EkpyroticFrood has joined #openscad
<Claws61821>
Reversed the point order within each subvector as you suggested, teepee. No change.
<Claws61821>
Also tried reversing the order of the subvectors themselves with no change.
<teepee>
how big is that code? put it on pastebin?
<Claws61821>
about 200 lines all told. one moment please
<Claws61821>
Hm... adding one more level, I get one tiny slice of one hole that changes depending on what I set as the second subvector...
ToAruShiroiNeko has quit [Remote host closed the connection]
ToAruShiroiNeko has joined #openscad
<Claws61821>
And adding a second variable to `for` ([for (a=[3:-1:0],b=[0:borepathlen-1]) borepath[0][a][b]]) gives me all four holes, but makes them one list and connects them all to eachother which subverts the intent
<teepee>
that "each" unwraps the outer list and inserts the parts instead of a nested list
<teepee>
echo(list1 = ["a", [for (a = [0:3]) a]], list2 = ["b", each [for (a = [0:3]) a]]);
<teepee>
first is a list of length 2, second of length 5
<Claws61821>
That did it. Thank you, teepee
<Claws61821>
In a different project with the same styling; how would you change this to make multiple subvectors? `borepath = [each [for (a=[0:borecount-1],b=[0:19]) [pathlen+(a*20)+b]]];`
<teepee>
not sure I'll understand that before having some sleep ;-)
<Claws61821>
XD fair enough
<teepee>
maybe dropping both the "each" and the brackets of the value?
<teepee>
as in: echo(list1 = [for (a = [1:3]) [a]], list2 = [for (a = [1:3]) a]);
<Claws61821>
`borepath = [for (a=[0:borecount-1],b=[0:19]) pathlen+(a*20)+b];` makes it one single vector...
<teepee>
and it should be?
<teepee>
borecount subvectors?
<Claws61821>
yes
<teepee>
I guess you have to write it out with a second for() then
<teepee>
[for (a) [for (b) ...]]
<Claws61821>
Ah! Thanks again, teepee
Claws61821 has quit [Quit: Client closed]
aiyion has quit [Remote host closed the connection]
aiyion has joined #openscad
ur5us has quit [Ping timeout: 255 seconds]
ur5us has joined #openscad
ur5us_ has joined #openscad
ur5us has quit [Read error: Connection reset by peer]
ur5us__ has joined #openscad
ur5us_ has quit [Ping timeout: 272 seconds]
J1A8492 is now known as J1A84
retrosenator has quit [Read error: Connection reset by peer]
<pa>
anyone who made set screws with threads_v2.scad? :-)
<pa>
nvm was easy
ur5us__ has quit [Ping timeout: 272 seconds]
GNUmoon has quit [Read error: Connection reset by peer]
GNUmoon has joined #openscad
snaked has quit [Read error: Connection reset by peer]
snaked has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openscad
lastrodamo has joined #openscad
aiyion has quit [Ping timeout: 240 seconds]
aiyion has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
Deknos has joined #openscad
ur5us__ has joined #openscad
ur5us__ has quit [Ping timeout: 255 seconds]
snaked has quit [Ping timeout: 255 seconds]
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
la1yv_b has joined #openscad
la1yv_a has quit [Ping timeout: 246 seconds]
SamantazFox_ has quit [Ping timeout: 240 seconds]
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
fling has quit [Read error: Connection reset by peer]
fling has joined #openscad
retrosenator has joined #openscad
GNUmoon has quit [Ping timeout: 240 seconds]
GNUmoon has joined #openscad
ecraven has quit [Ping timeout: 248 seconds]
ecraven- has joined #openscad
ViktorasCNC has quit [Read error: Connection reset by peer]
la1yv_b has quit [Ping timeout: 255 seconds]
la1yv has joined #openscad
la1yv has quit [Read error: Connection reset by peer]
la1yv has joined #openscad
la1yv has quit [Read error: Connection reset by peer]
la1yv has joined #openscad
la1yv_a has joined #openscad
la1yv has quit [Ping timeout: 255 seconds]
la1yv_a has quit [Remote host closed the connection]
la1yv_a has joined #openscad
la1yv_a has quit [Read error: Connection reset by peer]
la1yv_a has joined #openscad
la1yv_b has joined #openscad
la1yv_b has quit [Remote host closed the connection]
la1yv_b has joined #openscad
la1yv_a has quit [Ping timeout: 256 seconds]
la1yv_b has quit [Read error: Connection reset by peer]
la1yv has joined #openscad
lastrodamo has quit [Quit: Leaving]
la1yv has quit [Remote host closed the connection]
<J1A84>
linext if you intersect this with the mono hex structure .. you get your flipflop
<J1A84>
btw you need a 30cm bed to print full length
<linext>
ah, that's why no one does it
<J1A84>
if you have small feet maybe one fit diagonaly
<linext>
nope, around 10 or 11 inches
<linext>
my bed is 220mm
<linext>
i also have a rostock max that has about 10in diameter
<J1A84>
funny that your bed is not in inch Ü
<linext>
220mm is a little more than 8 inches
<J1A84>
×sqrt(2) for the hypotenuse
dalias has joined #openscad
<linext>
would be interesting if there could be a print in-place hinge for the flip-flop so it could be printed vertically for some parts
<J1A84>
haha
<J1A84>
nice idea
<linext>
i put my broken flip-flop on the heated bed, and it just makes it
<J1A84>
that is totally doable
<J1A84>
a flip flop with a toe hinge would be cool too
nedko has left #openscad [Невронната мрежа е четвъртото нарцистично унижение]
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
ur5us__ has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
JakeSays has joined #openscad
JakeSays_ has quit [Ping timeout: 258 seconds]
ur5us__ has quit [Quit: Leaving]
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openscad
joseph_ has joined #openscad
joseph_ has quit [Client Quit]
retrosenator has quit [Read error: Connection reset by peer]
joseph_ has joined #openscad
joseph_alt has joined #openscad
<joseph_alt>
joseph_: test
<joseph_>
joseph_alt: reply
joseph_alt has quit [Client Quit]
ur5us has joined #openscad
joseph_alt has joined #openscad
<joseph_alt>
joseph_: test
<joseph_>
joseph_alt: reply
joseph_alt has quit [Client Quit]
ur5us has quit [Ping timeout: 255 seconds]
joseph_alt has joined #openscad
<joseph_alt>
joseph_: test
retrosenator has joined #openscad
<joseph_alt>
joseph_: test
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
<joseph_alt>
joseph_: test
<joseph_alt>
joseph_: test
<joseph_alt>
joseph_: test
joseph_alt has quit [Quit: Konversation terminated!]
<joseph_>
teepee InPhase: My IRC bouncer appears to be working and I have set up push notifications on my phone (triggered by mentioning joseph_). This configuration should improve efficiency this summer by letting me see new feedback more quickly