teepee changed the topic of #openscad to: OpenSCAD - The Programmers Solid 3D CAD Modeller | This channel is logged! | Website: http://www.openscad.org/ | FAQ: https://goo.gl/pcT7y3 | Request features / report bugs: https://goo.gl/lj0JRI | Tutorial: https://bit.ly/37P6z0B | Books: https://bit.ly/3xlLcQq | FOSDEM 2020: https://bit.ly/35xZGy6 | Logs: https://bit.ly/32MfbH5
mtm has quit [Ping timeout: 260 seconds]
mtm has joined #openscad
t4nk_fn has quit [Server closed connection]
t4nk_freenode has joined #openscad
LordOfBikes has quit [Ping timeout: 256 seconds]
LordOfBikes has joined #openscad
kintel has joined #openscad
<gbruno> [github] thecaralice opened pull request #5214 (fix(cmake): allow installing macOS bundle with CMake) https://github.com/openscad/openscad/pull/5214
mmu_man has quit [Ping timeout: 245 seconds]
<gbruno> [github] kintel closed pull request #5214 (fix(cmake): allow installing macOS bundle with CMake) https://github.com/openscad/openscad/pull/5214
<gbruno> [github] kintel pushed 1 modifications (fix(cmake): allow installing macOS bundle with CMake (#5214)) https://github.com/openscad/openscad/commit/e3f3ed0050f1ddb2bd77260c31b002d9c3fbbdc1
<gbruno> [github] kintel closed issue #5213 (CMake installs nothing on macOS) https://github.com/openscad/openscad/issues/5213
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
fling has quit [Remote host closed the connection]
J24k88 has joined #openscad
J24k has quit [Ping timeout: 256 seconds]
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
killjoy has quit [Server closed connection]
killjoy has joined #openscad
killjoy has joined #openscad
killjoy has quit [Changing host]
sinned6915 has quit [Server closed connection]
sinned6915 has joined #openscad
raboof has quit [Server closed connection]
raboof has joined #openscad
ferdna has joined #openscad
jaredo has quit [Server closed connection]
jaredo has joined #openscad
Kehet has quit [Server closed connection]
Kehet has joined #openscad
Kehet has quit [Changing host]
Kehet has joined #openscad
t4nk_freenode is now known as t4nk_fn
ferdna has quit [Quit: Leaving]
mmu_man has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
<gbruno> [github] ochafik synchronize pull request #37 ([WIP] 🌈 Colorful & Customizable ™ Playground) https://github.com/openscad/openscad-playground/pull/37
mtm has quit [Ping timeout: 245 seconds]
<gbruno> [github] ochafik closed pull request #43 (Added Lasercut library) https://github.com/openscad/openscad-playground/pull/43
<gbruno> [github] ochafik pushed 4 modifications (Merge pull request #43 from jaydenlo08/lasercut Added Lasercut library) https://github.com/openscad/openscad-playground/commit/bc88246021ff7f035817325cf43e29728c4c96c6
mtm has joined #openscad
Guest6 has joined #openscad
<Guest6> i have a problem, im pretty new to openscad and want to create curved train tracks for my models.
<Guest6> i have already a script to generate straight ones in any length
<InPhase> Guest6: Well, a good demo might by my curved train tracks model. :)
<othx> InPhase linked to "Modular Train Track Set, Standard Compatible, and Customizable by rcolyer" on thingiverse => 7 IRC mentions
<Guest6> thanks alot, i´ll take a look at that
<InPhase> Guest6: I made that for my kid one Christmas, and it worked exceptionally well. My kids have owned a lot of commercial sets, and those printed ones were better than all of them I think.
Guest6 has quit [Quit: Client closed]
Guest6 has joined #openscad
<InPhase> Welcome back. :)
<Guest6> my pc locked up
<Guest6> haha
<InPhase> Did you get the link saved, or do you need it again?
<InPhase> (Also channel logs are in the link at the topic.)
<Guest6> i´ve got the thingiverse link, thank you.
<InPhase> Excellent.
<Guest6> Im trying to build my own train set with really small 3d printed trains
<Guest6> if all goes well im gonna try to motorize one
<InPhase> Sounds like fun. :)
<InPhase> You'll see from the example that most curved train track designs could be made by some combination of that demonstrated rotate_extrude and for loops with rotate translate.
<Guest6> yes, im looking at the code right now.
<Guest6> looks really complicated
<Guest6> but with openscad atleast its scaleable and i wont have to redisgn my all tracks if i need to change something later
<InPhase> If you break it apart into pieces it'll start to make sense.
<Guest6> yep
<InPhase> The key is to design the curved part for the wheels to ride in as a 2D cross-section of what is rotate_extruded.
<InPhase> So because I knew I would need that for the curved tracks for rotate_extrude, I reused the same approach for the straight tracks with linear_extrude so that they were matching parts.
<Guest6> im honestly quite stumped as to why one could not just take a cross section of the entire rail and transform and rotate it often times in small slices so to say
<Guest6> that was my approach
<Guest6> your tracks have the wheels going inside of them, mine are going to sit ontop the rails.
<Guest6> that should make it easier for me
<InPhase> It tends to be a mess to try to piece together large numbers of 3D pieces. There needs to be slight overlap, so you end up with a large number of edge effects.
<Guest6> true
<InPhase> One can do it, but it makes for a design that renders slowly from all those edge effects, and it can end up printing not too smoothly.
<InPhase> So the preferred approach is to look for a solution path that uses one of the other features.
<InPhase> I had a few years of OpenSCAD experience before I made this track, so knowing these things, I actually made my curved track piece first, as I knew it would constrain my approach more, and then made the straight track from that.
<Guest6> huh, interesting
<Guest6> i started openscad yesterday
<InPhase> tutorial?
<othx> tutorial is The OpenSCAD tutorial is a great place to learn how to create designs in OpenSCAD, and can be found at: https://en.wikibooks.org/wiki/OpenSCAD_Tutorial
<InPhase> This is also very helpful. ^
<Guest6> i have 0 intuition
<Guest6> ive looked at some before i started
<Guest6> i think im gonna try and take you code as inspiration and then make my own approach instead of trying to adapt something i dont fully understand
<InPhase> That's very reasonable.
<InPhase> I built up my design in this order: First I worked only in 2D and made a cross section. Then I translated and rotate_extruded. Then I for-looped the cross bars.
<InPhase> Then I put that in a module and copied it to make a straight track module.
<InPhase> Probably the biggest chunk of time then was thinking about my latch design, as that actually required some clever thinking to get a design for connecting pieces that would work well for kids and also be printable. :)
<Guest6> ok, that makes sense
<Guest6> my connector is quite similar to how carrera cars work
<Guest6> an at that small of a scale its enough to hold
<Guest6> i think i understand your code now, everything after the rotate Extruded is for the bars
<InPhase> Yeah. Well the latches at the end to connect, and then the bars.
<Guest6> i think i know how to do my latches
<InPhase> If you're new to printing in general, what you'll want to do is print some small track segments and test out your latches so you can make tweaks to the spacing and such on those.
<InPhase> It's precisely the sort of thing that's hard to get perfect on the first draft.
<Guest6> calculate the fist angle, cut out the connector hole, calculate last angle, make a cube to fit in that hole
<Guest6> i already have like 7 different tracks before me
<InPhase> Ok. :)
<Guest6> the latches work perfectly
<InPhase> Great.
<Guest6> i just hope ill be able to have the curved track have the same properties as the straight ones ive already printed
<Guest6> but they so small the filament cost is negliable, so i can also just start again
<Guest6> they´re*
<Guest6> thank you for all the suggestions and your code, i have to leave now
Guest6 has quit [Quit: Client closed]
<gbruno> [github] ochafik synchronize pull request #37 ([WIP] 🌈 Colorful & Customizable ™ Playground) https://github.com/openscad/openscad-playground/pull/37
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
mmu_man has quit [Read error: Connection reset by peer]
stefanct has quit [Server closed connection]
stefanct has joined #openscad
Junxter has quit [Read error: Connection reset by peer]
mmu_man has joined #openscad
Junxter has joined #openscad
extor has quit [Server closed connection]
extor has joined #openscad
ferdna has joined #openscad
kintel has joined #openscad
koboveb has joined #openscad
Guest6 has joined #openscad
<Guest6> InPhase just wanted to let you know that i did it and your code was great at helping me understand it. Thank you
koboveb has quit [Quit: Client closed]
Guest6 has quit [Quit: Client closed]
<InPhase> Yay.
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mohnish has quit [Quit: WeeChat 0.4.3]
<gbruno> [github] kintel edited issue #5215 (Assertion failed: ps.isTriangular() in Manifold mode) https://github.com/openscad/openscad/issues/5215
<gbruno> [github] kintel opened issue #5215 (Assertion failed: ps.isTriangular() in Manifold mode) https://github.com/openscad/openscad/issues/5215
kintel has joined #openscad
KimK has joined #openscad
mtm_ has joined #openscad
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtm has quit [Ping timeout: 258 seconds]
mtm has joined #openscad
mtm_ has quit [Ping timeout: 264 seconds]
califax has quit [Remote host closed the connection]
califax has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
hisacro has quit [Server closed connection]
hisacro has joined #openscad
ferdna has quit [Quit: Leaving]
mtm has quit [Read error: Connection reset by peer]
mtm has joined #openscad
jts has quit [Ping timeout: 260 seconds]
jts has joined #openscad
<J24k88> sometimes it just need to be a polyhedron https://imgur.com/a/jq3IpC6
Smeef has quit [Read error: Connection reset by peer]
Smeef has joined #openscad
RichardPotthoff has quit [Server closed connection]
RichardPotthoff has joined #openscad
<InPhase> J24k88: A springy cable wrap?
<J24k88> InPhase who am i to tell you what to do with it - Ü .. but i use it as bag clip
<J24k88> to use it the inner part is levered over the outer and so keeps bags tight
<J24k88> when pulled over the folded bag
<J24k88> slide
<InPhase> Hmm, interesting. I guess that would work.
<InPhase> I saw a few printable bag clip designs, but they all seemed prone to snapping.
<InPhase> That looks resistant to snapping from the intrinsically distributed nature. But does it manage to not slide off the top?
<J24k88> i am using it for years - but that version used several hundred stacked extrusions - so i had to make a cleaner version
<J24k88> InPhase it is holding nicely but can be pulled off easy - if you want extra secure just put a bamboo skewer into the fold and pull after the clip was slid on
<InPhase> J24k88: I usually use rubber bands. But it's a constant race between how often I buy celery at the grocery store, which is my primary source of rubber bands, and how often the kids lose the rubber bands.
<InPhase> Now in theory one can buy rubber bands. But traditionally I have just acquired rubber bands by them arriving magically from other sources.
<InPhase> The postal service used to be my primary source of rubber bands, but they have cut back on their rubber band usage to wrap the mail.
<InPhase> So now it's celery. :)
J24k88 has quit [Quit: Client closed]
J24k88 has joined #openscad
<gbruno> [github] kintel opened issue #5216 (color() without arguments renders black with Manifold) https://github.com/openscad/openscad/issues/5216
<gbruno> [github] kintel opened issue #5217 (color() doesn't override color of render()'ed objects in Manifold mode) https://github.com/openscad/openscad/issues/5217
<gbruno> [github] kintel closed pull request #5185 (Color support in 3D rendering (includes OFF color import / export, green subtracted faces)) https://github.com/openscad/openscad/pull/5185
<gbruno> [github] kintel pushed 16 additions 45 modifications (Color support in 3D rendering (includes OFF color import / export, green subtracted faces) (#5185) * add PolySetBuilder::reserve / numPolygons
mmu_man has quit [Ping timeout: 265 seconds]
kintel has joined #openscad
<kintel> InPhase Broccoli and Leek also come with rubber bands here, the good, thick ones.
<InPhase> Leeks are alright, but not a normal part of my staple diet. However I have a genetic contempt for the flavor of broccoli.
<kintel> One has to suffer for free rubber bands ;)
<InPhase> I already passed on the "you'll live longer!" bit about broccoli. ;)
<kintel> FYI: I've merged ochafik's PR which add color support for render (and export to OFF). There are a few pending issues, but will be resolved in follow-up PRs. If anyone finds anything suspicious, please ping me or open an issue
<InPhase> For some reason all the best reputed green vegetables taste super bitter to me. I eat the other ones instead. :)
<InPhase> kintel: What was the goal of exporting to off? Does it debug-print the colors?
<kintel> It supports export to OFF with surface colors
<InPhase> Is off like an actual real format?
<kintel> yup
<InPhase> I thought off meant "turn off output"...
<kintel> haha
<InPhase> And I looked in the source and just saw some ostream printouts, that I assumed were for debugging purposes or something, as they look pretty structureless.
<InPhase> I didn't actually try it though.
<kintel> Not sure who supports off import downstream from us though, but it's a good export-import test
<kintel> yup
<InPhase> We are not compliant with that format.
<InPhase> output << "OFF " << ps->vertices.size() << " " << ps->indices.size() << " 0\n";
<InPhase> "- First line (optional): the letters OFF to mark the file type. - Second line: the number of vertices, number of faces, and number of edges, in order"