teepee changed the topic of #openscad to: OpenSCAD - The Programmers Solid 3D CAD Modeller | This channel is logged! | https://openscad.org/advent-calendar-2021/ | 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
ferdna has joined #openscad
<gbruno> [github] t-paul pushed 1 modifications (Merge pull request #4128 from openscad/wasm-update Add flags for WASM compilation.) https://github.com/openscad/openscad/commit/755ffce443f9cecfba165ade595868f0819fd3dd
<gbruno> [github] t-paul pushed 3 modifications (Merge pull request #4127 from openscad/fix-nullgl Fix NULLGL.) https://github.com/openscad/openscad/commit/e03695a0872be910cf5d0ed944777f079ac8b8da
ur5us has joined #openscad
J222 has joined #openscad
J22 has quit [Ping timeout: 256 seconds]
<OlivierChafik[m]> teepee: did you have to fiddle much to get openscad-wasm to compile? I'm slightly stuck on macosx https://pastebin.com/4dqKi0qT
LordOfBikes has quit [Ping timeout: 272 seconds]
myosotis has quit [Remote host closed the connection]
myosotis has joined #openscad
LordOfBikes has joined #openscad
epony has quit [Ping timeout: 240 seconds]
myosotis has quit [Quit: myosotis]
ur5us has quit [Ping timeout: 240 seconds]
J22210 has joined #openscad
J222 has quit [Ping timeout: 256 seconds]
ferdna has quit [Quit: Leaving]
gunnbr__ has joined #openscad
gunnbr_ has quit [Ping timeout: 240 seconds]
ur5us has joined #openscad
GNUmoon has quit [Ping timeout: 240 seconds]
GNUmoon has joined #openscad
fling has joined #openscad
arebil has joined #openscad
Junxter has joined #openscad
<teepee> OlivierChafik[m]: oh, strange, it worked out of the box, bot the old 2019 build and the new one I sent as PR which is already merged
<teepee> I can kick off a new full build
ur5us has quit [Ping timeout: 240 seconds]
_xxoxx has joined #openscad
_xxoxx has quit [Remote host closed the connection]
Junxter has quit [Ping timeout: 256 seconds]
arebil has quit [Quit: My keyboard has gone to sleep. ZZZzzz…]
GNUmoon has quit [Quit: Leaving]
GNUmoon has joined #openscad
<Scopeuk> is that wasm build heading off to the cad hub folks?
<teepee> no idea, it might help for that at some point, but it's both not ready yet to be easily usable and also cadhub seems a bit dormant for a bit (or working quietly in background)
<J22210> funny  the face calculation is ignoring points instead of giving an error https://pasteboard.co/wYd4utRCnKka.png
<Scopeuk> fair enough
<J22210> (code https://bpa.st/QLIA )
<teepee> aahhhhhhh, there's a semicolon after the include<>
<teepee> ;-)
<teepee> interestingly the F6 display is 3 identical half-cones
<teepee> OlivierChafik[m]: clean rebuild (I think) build worked without any problems, not sure if the macos info somehow leaks into the boost build checks?
<peepsalot> J22210: you are defining all the faces of a cone into one large invalid (non-planar) face definition? yuck
<peepsalot> do you know, coincidentally, that "UB" is a well known acronym in programming
Cadair has quit [Quit: Bridge terminating on SIGTERM]
evils[m] has quit [Quit: Bridge terminating on SIGTERM]
Notkea has quit [Quit: Bridge terminating on SIGTERM]
miique has quit [Quit: Bridge terminating on SIGTERM]
OlivierChafik[m] has quit [Quit: Bridge terminating on SIGTERM]
HannoBraun[m] has quit [Quit: Bridge terminating on SIGTERM]
jochen[m]1 has quit [Quit: Bridge terminating on SIGTERM]
t-paul[m] has quit [Quit: Bridge terminating on SIGTERM]
ScottJackson[m] has quit [Quit: Bridge terminating on SIGTERM]
metasean[m] has quit [Quit: Bridge terminating on SIGTERM]
bboett[m] has quit [Quit: Bridge terminating on SIGTERM]
NoGare[m] has quit [Quit: Bridge terminating on SIGTERM]
LeviHarris-Brown has quit [Quit: Bridge terminating on SIGTERM]
M6piz7wk[m] has quit [Quit: Bridge terminating on SIGTERM]
ScottJackson[m] has joined #openscad
<J22210> peepsalot  yes  inphase first also thought that is why i called it ub.scad - Ü  .. however  i  made all faces into a non planar face  because i would like to find out what happens and how the algorithm is dealing with that problem  ..
t-paul[m] has joined #openscad
Cadair has joined #openscad
NoGare[m] has joined #openscad
OlivierChafik[m] has joined #openscad
HannoBraun[m] has joined #openscad
M6piz7wk[m] has joined #openscad
evils[m] has joined #openscad
bboett[m] has joined #openscad
Notkea has joined #openscad
jochen[m] has joined #openscad
miique has joined #openscad
LeviHarris-Brown has joined #openscad
<J22210> teepee  yes the F6 renders with  72 segments   so "kreis" uses that while the face definition stay fixed ..  (use kreis(fn=36) to avoid )
metasean[m] has joined #openscad
<peepsalot> J22210: also do you know that kreis repeats the first and last point?
<J22210> yes  this is because "kreis" is used with grad=360   so when building polyhedron you can open the circle without problems with the fragments
<J22210> ( in the example the center is also repeated , just to make sure the position doesn't caused this UB)
<peepsalot> J22210: that's why i handle angle 360 specially in my function https://github.com/thehans/FunctionalOpenSCAD/blob/master/functional.scad#L120-L132
<J22210> so  your arc   has a different number of points  in different angles and 360  or ?
<peepsalot> read the comment starting at line 120 which i highlighted
<peepsalot> by default, if its a full circle (360), it will not include the last point
<peepsalot> but the behavior can be overridden with "endpoint" arg
<peepsalot> also, aren't there 400 grads in a circle :P
<J22210> i just recognized that my option of  adding a  center point  causes the number of points to change (as 360 don't get the center point) .. so i should also add  some optional value
<J22210> hehe  you can use  grad(grad=0,min=0,sec=0,h=0,prozent=0,gon=0,rad=0)   so  gon is 400
Junxter has joined #openscad
<peepsalot> J22210: here is how I would properly define a cone polyhedron using kreis as it currently is: https://bpa.st/BUSA
<J22210> i have a module that is taking care of that https://bpa.st/OYQQ   ..   as i said this was just a test to see how non-planar faces are dealt with
la1yv_b has quit [Ping timeout: 240 seconds]
<J22210> so  my  guess is that if  non planar faces could cause that points are ignored  (or even stranger results)  so this might be a reason why CGAL errors occur
la1yv_b has joined #openscad
<OlivierChafik[m]> teepee: thanks for checking! I'll randomly brew uninstall all the critical bits of my system and retry :-D
<teepee> how is that working on macos? is that running a VM?
<teepee> it's strange how there would be an issue as the build is fully encapsulated in the emscripten docker container
<OlivierChafik[m]> It already had issues git cloning boost (not actually recursing into the submodules, I had to git submodule update them manually, and even pull the filesystem submodule... maybe my git version is to blame somehow)
<OlivierChafik[m]> (that bit is outside docker)
<OlivierChafik[m]> > pull the filesystem submodule
<OlivierChafik[m]> git -C $@/libs/filesystem apply ../../../../patches/boost-filesystem.patch
<OlivierChafik[m]> Not I see it does this to that specific module: maybe git apply just failed horribly
<OlivierChafik[m]> now*
<teepee> oh, outside the container
<teepee> but this looks like a confused boost build system, it does not even seam to reach the actual code build
<OlivierChafik[m]> trying again, maybe i just had a network error and because of how make works it didn't pick up the recursive clone + patch where it first failed when I retried.
muesli has quit [Quit: NO CARRIER]
muesli has joined #openscad
arebil has joined #openscad
epony has joined #openscad
GNUmoon has quit [Ping timeout: 240 seconds]
GNUmoon has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
arebil has quit [Quit: My keyboard has gone to sleep. ZZZzzz…]
myosotis has joined #openscad
<gbruno> [github] PRouzeau opened issue #4129 (Customizer tabs all opened at startup, roll back to closed tabs) https://github.com/openscad/openscad/issues/4129
rogeliodh has quit [Quit: The Lounge - https://thelounge.chat]
rogeliodh has joined #openscad
othx has quit [Ping timeout: 256 seconds]
othx has joined #openscad
tachoknight has joined #openscad
arebil has joined #openscad
<J22210> french ..   but was there ever an option to start with all topics folded
<J22210> (collapsed)
<teepee> no, but I think the default did change twice now :)
<J22210> i think it is a valid request ..  would be nice to have  something like  / added in the topic  /*{Topic]*//  to  haven them collapsed by default
<teepee> changing the default is not going to happen, expanding in normal case of not many values is not good
<teepee> but some extension for giving the default makes sense
<teepee> we just need to make sure to not collide with thingiverse as they are not dead yet
veverak has quit [Ping timeout: 268 seconds]
veverak has joined #openscad
<peepsalot> maybe just add collapse all/expand all buttons (or as right click context menu items)
<peepsalot> or as a Preference checkbox (default to collapsed customizer param groups)
<peepsalot> but in general the "i have 5000 parameters" sounds like a "you problem"
arebil has quit [Quit: My keyboard has gone to sleep. ZZZzzz…]
* J22210 activates the SEP field
J22210 is now known as J22
<J22> it is quite amazing how some people use SCAD ..  reminds me when we had a software demo  with dev people in the back - and a trainer explained how to use that function and the dev people  just wondered  " wait  what  - you can do that with the program?"
myosotis has quit [Remote host closed the connection]
ur5us has joined #openscad
<teepee> yup, quite common effect :)
<teepee> but also, as always...
<teepee> workflow!
<othx> workflow is https://xkcd.com/1172/
<teepee> I like the expand/collapse button idea, and a definition that does not break thingiverse for default collapse seems also ok
<teepee> I don't want extended features in that customizer hack that makes incompatible designs, but some extra hacks for the UI are ok
Guest364 has joined #openscad
Guest364 has quit [Client Quit]
<J22> it seems that  a double //  after doesn't break syntax /*[Topic]*///   (while in front it does and only one also)
<J22> and as existing comments likely use a space  /*[Topic]*/ //   there would be a differentiation too
<J22> else  it  also looks like everything outside the [] works too /* -/[test]-/*/
<teepee> haha, omg, I don't want to explain that :)
<J22> a=10;
<J22> ⇒  /* this needs to [test] be collapsed by default /*/
<J22>  wonder if  something like  /*[test] closed */     or   /* open [test] sesame */    or  just  a character  like  *  which is already used to disable geometry  or  /  ⇒ /*[test] /*/
* InPhase sighs at comment parsing.
<InPhase> We literally had a security hole fixed from comment parsing problems. :)
<teepee> yep, it's a bad idea in general
linext has joined #openscad
<teepee> but still the only option we have for now
<InPhase> I was just complaining about the same in #python the other day. I just learned that there is an early 2000s feature in cpython for parsing comments to determine file encoding.
<InPhase> So you can throw in a comment that breaks a file.
linext_ has quit [Ping timeout: 240 seconds]
<InPhase> They did it in comments so that they could be emacs compatible.
<InPhase> It probably would have been better to update emacs...
linext has quit [Ping timeout: 272 seconds]
Junxter has quit [Read error: Connection reset by peer]
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
ur5us has quit [Ping timeout: 240 seconds]
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
lostapathy has quit [Quit: WeeChat 2.8]
lostapathy has joined #openscad
linext has joined #openscad
myosotis has joined #openscad
linext has quit [Ping timeout: 272 seconds]
linext_ has joined #openscad
linext_ has quit [Ping timeout: 240 seconds]
ur5us has joined #openscad
linext has joined #openscad
linext_ has joined #openscad
linext has quit [Ping timeout: 256 seconds]
<teepee> some proof it works https://files.openscad.org/wasm/wasm.zip :)
linext__ has joined #openscad
linext_ has quit [Ping timeout: 240 seconds]
<myosotis> but does it run doom?
<teepee> nope
<myosotis> interesting approach
<teepee> what is?
<myosotis> I would have send it server-side for rendering
<myosotis> not sure I would have considered compiling openscad for browser...
<myosotis> buggy for sure, but nice poc
<teepee> yes, just a first step and not meant as replacement for a normal native app
<teepee> but having an option for something like interactive tutorials is nice
<myosotis> I was surprised when I hit Run and it showed me half a cube. I was not surprised when I hit run again and it exited. I'm tempted to throw some of my stupid parts in this and see what happens
<myosotis> half a sphere.... it rendered as-expected, which surprised me
<teepee> it will always need reload currently
<myosotis> is that project in version control yet?
<teepee> no
<teepee> well, the wasm compilation is
myosotis has quit [Remote host closed the connection]
<InPhase> teepee: It's conceivable that version could someday get more use than the native version if somebody slaps it on a site in some manner setup like a customizer.
<InPhase> teepee: I can imagine a customizer that is kept up-to-date finally, but without the server load. The browser does the heavy lifting.
<teepee> yes, there's certainly a scaling benefit for that scenario
<InPhase> Back when thingiverse was viable, the number of people using the customizer seemed to vastly outnumber the people who were comfortable downloading and working with scad files. So I think there's a big user space there.
<InPhase> Alhough I will continue to regard the native version as "core" usage. Because that's how I roll. :)
<teepee> yes, I like that much better for the normal design process
<InPhase> I suppose it will potentially be a divide between power users that are more designers, and end users that are more customizers, split by those compilation targets.
<InPhase> It's a very natural divide for these parametric approaches.
ur5us has quit [Ping timeout: 240 seconds]
ferdna has joined #openscad
<OlivierChafik[m]> teepee: does this demo load for you? https://ochafik.com/openscad
<teepee> yes
<teepee> that looks great :)
<OlivierChafik[m]> I've wanted to have a VS Code-style editor for OpenSCAD for ages. Refresh of the page should preserve the source code (it's all encoded in the URL fragment, will even survive a crash of chrome)
<OlivierChafik[m]> No clue how much work it would be to get the actual UI there, but I'll leave that to DSchroer
<OlivierChafik[m]> (i'm still amazed by how his WASM build works!)
<teepee> we'll have to see what the plan is there, but at minimum I want to keep it from bit rotting :)
<OlivierChafik[m]> (I've added some "intellisense" for some of the builtins)
<J22> works well  but syntax is a bit different  like  sphere(1)  gives an error
<OlivierChafik[m]> misses the semi ; maybe?
<OlivierChafik[m]> will need to extract the errors from the stderr
<teepee> there seems to be some CGAL problems, not sure if that's due to missing rounding-math
<OlivierChafik[m]> oh more likely I hard-baked fst-csg
<OlivierChafik[m]> fast-csg
<OlivierChafik[m]> shouldn't have haha
<OlivierChafik[m]> will add a checkbox
<teepee> I've seen those issues without fast-csg too
<J22> hmm i broke it Ü
<OlivierChafik[m]> that should be easy haha
<OlivierChafik[m]> what does the developer console say?
<OlivierChafik[m]> (and reloading the page is always an options :-D )
<J22> seems there is a difference of typing the commands and selecting from dropdown .. while the later works
<J22> ErrnoError
<J22> also got that it added more and more stl links ..
<J22> Could not initialize localization.
<J22> hmm googlesyndication ?   is that needed?
teepee has quit [Ping timeout: 240 seconds]
<OlivierChafik[m]> hahaha I work in ads so always keen to try them on even small demos
<OlivierChafik[m]> nothing a good ad blocker shouldn't stop
<J22> i just saw an error  cuz  it is blocked on dns level
teepee has joined #openscad
<OlivierChafik[m]> yeah I had to add a service worker to set some special CORS headers to allow the use of some SharedArrayBuffer
<OlivierChafik[m]> and it's messing with the ad tag, which I'm looking into now :-D