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
<JordanBrown[m]> guso78: is the intent to have Python-language programs be able to call OpenSCAD-language programs and vice versa, or just to have the OpenSCAD user interface and geometry subsystems (editor, 3D viewer, CGAL, STL export) able to process both programs written in the OpenSCAD language and programs written in Python?
kintel has joined #openscad
<JordanBrown[m]> (I do not mean to imply a "right" and "wrong" answer here.)
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gknux has joined #openscad
aiyion has quit [Remote host closed the connection]
GNUmoon has quit [Remote host closed the connection]
aiyion has joined #openscad
GNUmoon has joined #openscad
gknux has quit [Client Quit]
gknux has joined #openscad
gknux has quit [Ping timeout: 246 seconds]
gknux has joined #openscad
LordOfBikes has quit [Ping timeout: 252 seconds]
J237571 has joined #openscad
J2375 has quit [Ping timeout: 260 seconds]
LordOfBikes has joined #openscad
GNUmoon has quit [Remote host closed the connection]
aiyion has quit [Remote host closed the connection]
aiyion has joined #openscad
GNUmoon has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
little_blossom has joined #openscad
<J237571> xloem[m] here is your cyloidal drive https://www.printables.com/model/368595-cycloidal-drive
aiyion has quit [Remote host closed the connection]
Trieste has quit [Quit: Be well!]
aiyion has joined #openscad
Trieste has joined #openscad
J237571 is now known as J23
little_blossom has quit [Quit: little_blossom]
little_blossom has joined #openscad
<xloem[m]> thank you :D
<xloem[m]> you published it !
<J23> you are welcome - let me know if you have any questions ( i know my code can be strange)
castaway has joined #openscad
GNUmoon has quit [Ping timeout: 255 seconds]
TheAssassin has quit [Ping timeout: 255 seconds]
TheAssassin has joined #openscad
GNUmoon has joined #openscad
guso78 has joined #openscad
<gbruno> [github] pennywisehb opened issue #4500 (Rendering Polygon Mesh using CGAL failed) https://github.com/openscad/openscad/issues/4500
Guest1487 has joined #openscad
<Guest1487> Hi! I have this problem i just installed opescad but it wont open and it says neither EVR.dll MF.dll or MFPlat.DLL was found? what should i do
<teepee> Guest1487: you need to install a separate package from Microsoft that can't be shipped with OpenSCAD for legal reasons
<Guest1487> Thank you so much
Guest1487 has quit [Quit: Client closed]
L29Ah has quit [Read error: Connection reset by peer]
linext has quit [Quit: Leaving]
<InPhase> teepee: Oh, weird. Of all the anticompetitive things that were actually done, including some media libraries is sure a weird one for the EU to actually take action on.
califax has quit [Remote host closed the connection]
GNUmoon has quit [Remote host closed the connection]
<teepee> and probably the most useless one. I have no idea what that was supposed to help with
<teepee> sounds a bit like "oh, we did get some result"
califax has joined #openscad
GNUmoon has joined #openscad
<JordanBrown[m]> I suspect that it includes a library only as a side effect of including a user interface.
teepee_ has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
<J23> if you know how computer works - you are not politician in the EU
<Scopeuk> I think the idea was the user might chose a none microsoft solution
<Scopeuk> no idea why an end user would have a preference of underlying library though
<JordanBrown[m]> If they aren't including their UI, why should they include the library underneath it, that would go unused?
<JordanBrown[m]> (Unused in their install, that is.)
<J23> like the removal of internet explorer which is now a deeply integrated part of the start menu
<JordanBrown[m]> Yeah, that hasn't been as effective as one might like - especially that the Search bar insists on using Edge even if the default browser is something else.
<Scopeuk> the main issue was trident (the rendering engine for ie) was baked into windows for things like windows update and the help viewer
<Scopeuk> no excuse for that now with edge and start search mind
<J23> there is an own extension for internet urls that will always open via the internal system
<J23> and circumvent  the host file and other filter
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
L29Ah has joined #openscad
guso7859 has joined #openscad
<guso7859>  I have pushed a corrected Version. Which minimizes changing existing Files
<teepee> guso7859: hmm, strange, not seeing that in the PR
guso7859 has quit [Quit: Client closed]
<teepee> whops
<Scopeuk> hmm it will be interesting to see how https://www.youtube.com/watch?v=r5R_S_XIozw has been implimented
<othx> Scopeuk linked to YouTube video "Preview of the new Text tool in PrusaSlicer 2.6 #shorts #3dprinting" => 1 IRC mentions
gknux has quit [Ping timeout: 246 seconds]
gknux has joined #openscad
guso7811 has joined #openscad
guso7811 has quit [Client Quit]
guso7855 has joined #openscad
<guso7855> tee_pee, can you see my reorganisation ?
<guso7855> or PR dont work as expected and i need to issue a new PR ?
<JordanBrown[m]> if you say his name exactly as written (in this case without the underscore) then his client should chirp and wake him up.
guso7855 has quit [Client Quit]
guso7844 has joined #openscad
<JordanBrown[m]> No, no new PR should be needed. Simply pushing more content into the existing branch should update the PR.
<JordanBrown[m]> The most recent commit on PR 4498 "OpenSCAD with a Python Engine" is from yesterday.
L29Ah has quit [Read error: Connection reset by peer]
<JordanBrown[m]> Unfortunately, I don't immediately see how to see the exact time.
<JordanBrown[m]> Ah, here we go... Jan 13, 1601 UTC.
<JordanBrown[m]> "Merge branch 'openscad:master' into python"
Lagopus has quit [Read error: Connection reset by peer]
_whitelogger has joined #openscad
kintel_ has quit [Client Quit]
<guso7844> sorry guys, my push was rejected before and i did not notice while running away
<guso7844> now its there
<gbruno> [github] gsohler synchronize pull request #4498 (OpenSCAD with a Python Engine) https://github.com/openscad/openscad/pull/4498
<guso7844>  8b01b6bd0..570746f91 python -> python
<guso7844> giordano also realized already
<JordanBrown[m]> Yes (as gbruno says).
<guso7844> put a new file pyfunctions.cc which has about 1500 lines.  i can think of split it into 3 or four files split by category, but i dont like to use one file per function
<teepee> I would not have heard the beep while shopping groceries, but I see all sorted already :)
<teepee> yeah, lets go with that file, splitting later is trivial and does not impact users, so no worries about that
<guso7844> actually i am jumping between openscad and family, haha
guso7824 has quit [Ping timeout: 260 seconds]
kintel has joined #openscad
<guso7844> teepee, did you once succeed to run openscad with python syntax yourself .?
<kintel> peepsalot: You around? Having some fastcsg challenges :)
<teepee> guso7844: only toying a bit with your example code
<peepsalot> kintel: yeah, what's up
<peepsalot> fast-csg was all ochafik though, i don't know a ton about it
<kintel> oh, I somehow had your name attached to that in my head
guso78 has quit [Ping timeout: 260 seconds]
<kintel> Consider it a public question then :)
<kintel> One sec, I'll add my initial diagnosis to the gist
<kintel> Update gist.
<kintel> Challenge is that the behavior is flaky, with sometimes hanging and sometimes failing
<kintel> Seems to also be related to CGAL-5.5.1, which is now default in multiple places
<kintel> I can try to ping ochafik via a back channel as we work for the same company :)
gknux has quit [Ping timeout: 260 seconds]
guso78 has joined #openscad
<peepsalot> i guess the order of operations is not deterministic. have you tried "fast-csg-remesh-predictibly" ?
<teepee> yay for backchannels \o/
<teepee> isn't that error a little bit odd? or am I reading that wrong
<teepee> so the method is "check if that bunch of polygons is a valid mesh"
gknux has joined #openscad
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<teepee> and the precondition is "input has to be a valid mesh
J23 has quit [Quit: Client closed]
<teepee> seems to be trivial to implement that method as "return true;" then, no?
guso78 has quit [Quit: Client closed]
guso78 has joined #openscad
J23 has joined #openscad
<peepsalot> I can't replicate hangs or that error on openscad-nightly for ubuntu 22.04. I only get this for every run: "WARNING: [fast-csg] Corefinement corefinement mesh union #1 failed"
kintel has joined #openscad
<kintel> I didn't yet read the implementation or explore the variants, just starting to debugging a failing test by creating a smaller test case and testing where it fails
<kintel> ..but I can now get it to fail on both arm64 and x86_64 and macOS 11 and macOS 12. ..but I haven't seen it fail on Win or Linux yet, and haven't tried building it, mostly as I don't have a physical computer with those OS'es available atm
<peepsalot> kintel: are you able to get consistent results if you add --enable=fast-csg-remesh-predictibly ?
guso78 has quit [Quit: Client closed]
gknux has quit [Ping timeout: 252 seconds]
<kintel> yeah, then I always get WARNING: [fast-csg] Corefinement corefinement mesh union #0 failed
<kintel> ..and valid output
<kintel> (visually valid at least)
gknux has joined #openscad
guso78 has joined #openscad
guso78 has quit [Quit: Ping timeout (120 seconds)]
guso78 has joined #openscad
gknux has quit [Ping timeout: 252 seconds]
teepee_ has joined #openscad
<guso78> Do you know, how to unmerge a Branche automatically ?  😁
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
guso78 has quit [Quit: Client closed]
gknux has joined #openscad
<kintel> guso78: A local branch or a remote branch?
<kintel> Meh, GitHub codespaces with 4GB RAM ends up OOM-killing my OpenCAD build, even with make -j1 : (
<kintel> CGAL template expansion strikes again in cgalutils-corefine.cc
<teepee> maybe with clang?
TheAssassin has quit [Quit: No Ping reply in 180 seconds.]
TheAssassin has joined #openscad
<kintel> guso78: Assuming you did a local merge, and it was your last commit, this is usually the trick: `git reset --hard HEAD~`
<teepee> I'm likely going to squash merge into the branch anyway, so just reverting things would be fine too. I suppose we are talking about the evalstring stuff that ended up in the python branch?
<peepsalot> kintel: btw i've encountered another issue with fast-csg a while back https://github.com/openscad/openscad/issues/4400
califax has quit [Ping timeout: 255 seconds]
califax has joined #openscad
Lagopus has quit [Remote host closed the connection]
Lagopus has joined #openscad
<tcurdt> when I do: for(val = vector) ... is there a way to also get the index? or do I have go the manual for(i = [0:len(vector)]) route for this?
<JordanBrown[m]> no, yes.
<JordanBrown[m]> except [0:len(vector)-1]
<tcurdt> ok ... for(val, index = vector) would be nice ... but fair enough
<tcurdt> thx!
<JordanBrown[m]> You can write a small module that will do something similar...
<JordanBrown[m]> https://bpa.st/PJBO4
<JordanBrown[m]> but: in something of a scoping oddity, assignments in the child block can't see the $ variables.
<JordanBrown[m]> That's arguably a bug.
<tcurdt> I wasn't aware of such a use of $ variables ... interesting
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kintel has joined #openscad
<kintel> teepee: Thx, momentarily forgot that gcc tends to be default on Linux :)
<kintel> Btw., did anyone explore linking both EGL and GLX and only using GLX as a fallback if EGL doesn't work as expected?
<kintel> I believe that's what's common on other Linux GL SW
<kintel> ..at least until we can fully trust EGL
<teepee> I have a docker image with EGL https://hub.docker.com/r/openscad/openscad
<teepee> but glew does not seem to support both GLX and EGL at the same time
<teepee> hmm, arch has a package called glew-egl-glx, so maybe it's now possible?
<gbruno> [github] kintel edited issue #4470 (fastcsg-remesh causes flaky behavior on CGAL-5.5.1) https://github.com/openscad/openscad/issues/4470
<gbruno> [github] kintel edited issue #4470 (fastcsg-remesh causes flaky behavior on CGAL-5.5.1) https://github.com/openscad/openscad/issues/4470
<kintel> glew again. Perhaps that's what I should look into next :)
<kintel> Just have to get OpenSCAD building properly on macOS 13 first...
<teepee> not sure if it's the best solution but we have https://github.com/openscad/openscad/blob/master/src/glview/OffscreenContextEGL.cc
<kintel> yeah, that's what I'm trying on GitHub codespaces
<teepee> patching the makefile to SYSTEM = linux-egl
<teepee> plus patching quite a number of GLX dependencies in OpenCSG
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
castaway has quit [Ping timeout: 272 seconds]
TheAssassin has quit [Quit: No Ping reply in 180 seconds.]
TheAssassin has joined #openscad