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
<gbruno> [github] t-paul pushed 1 modifications (Python: Fix typo.) https://github.com/openscad/openscad/commit/1adbbfd9afaa820bdef1de4ef35028ec551abb35
<guso78k70> thanks!
<gbruno> [github] t-paul opened pull request #5712 (Python updates) https://github.com/openscad/openscad/pull/5712
<guso78k70> i realized that more stuff is missing. i think its an artefact of trying to change my github gmail address.  turned out to be very bad
<guso78k70> will redo tomorrow
<guso78k70> my email address in .gitconfig
mtm has quit [Ping timeout: 244 seconds]
mtm has joined #openscad
castaway has quit [Ping timeout: 260 seconds]
bertronika has quit [Quit: Konversation terminated!]
mtm has quit [Ping timeout: 252 seconds]
mtm has joined #openscad
J25k21 has joined #openscad
J25k36 has quit [Ping timeout: 240 seconds]
L29Ah has quit [Read error: Connection reset by peer]
L29Ah has joined #openscad
L29Ah has quit [Read error: Connection reset by peer]
nomike has quit [Ping timeout: 245 seconds]
mtm has quit [Ping timeout: 265 seconds]
mtm has joined #openscad
<gbruno> [github] kintel pushed 1 modifications (Add comments explaining why certain checks are disabled) https://github.com/openscad/openscad/commit/057368c04a21db539b4ce1d03104aeefc2153cdd
<gbruno> [github] kintel synchronize pull request #5701 (Squashed some clang-tidy warnings, slightly adjusted clang-tidy config) https://github.com/openscad/openscad/pull/5701
<gbruno> [github] kintel edited pull request #5701 (Squashed some clang-tidy warnings, slightly adjusted clang-tidy config) https://github.com/openscad/openscad/pull/5701
<gbruno> [github] kintel ready_for_review pull request #5701 (Squashed some clang-tidy warnings, slightly adjusted clang-tidy config) https://github.com/openscad/openscad/pull/5701
<gbruno> [github] kintel pushed 12 modifications (Merge branch 'master' into kintel-clang-tidy) https://github.com/openscad/openscad/commit/56d789e3937d4eabed2b2f40c895291a15ebdc5c
<gbruno> [github] kintel synchronize pull request #5701 (Squashed some clang-tidy warnings, slightly adjusted clang-tidy config) https://github.com/openscad/openscad/pull/5701
<gbruno> [github] kintel closed pull request #5706 (Clean MainWindow show/hide action) https://github.com/openscad/openscad/pull/5706
<gbruno> [github] kintel pushed 7 modifications (Clean MainWindow show/hide action (#5706) * Fix minor typo in MainWindow::onWindowActionSelectEditor * Adds comments in MainWindow.h * Remove the windowAction in mainwindow.ui because they are not needed anymore In PR #5630 the menuWindow behavior was changed to remove the "quasi duplicated" menu entries. - the windowActionHideXXX actions are now using the qt default dock action - the windowActionSelectXXX actions a
<gbruno> [github] kintel pushed 7 modifications (Merge branch 'master' into kintel-clang-tidy) https://github.com/openscad/openscad/commit/42b209a6fc31e7421d5c087e9493fd684940eff5
<gbruno> [github] kintel synchronize pull request #5701 (Squashed some clang-tidy warnings, slightly adjusted clang-tidy config) https://github.com/openscad/openscad/pull/5701
mtm has quit [Ping timeout: 246 seconds]
mmu_man has quit [Ping timeout: 244 seconds]
castaway has joined #openscad
guso78k70 has quit [Ping timeout: 240 seconds]
guso78k has quit [Ping timeout: 240 seconds]
<lockywolf> What is the point of "unity"?
stealth_ has quit [Remote host closed the connection]
<lockywolf> sorry, "union"
<InPhase> Well it unions things.
<InPhase> There are a lot of places with implicit unions, so it doesn't need to be used very often.
<InPhase> One case where it's kind of important is inside of a difference, for the first element.
misterfish has joined #openscad
<church_> btw, maybe worth auto-adding filename extension for stl exported files from openscad even if not manually specified? at one point i was slightly perplexed, "why i don't see just exported files in open dialog of slicer" .. and then found the reason :)
<lockywolf> The manual says that "text" creates 2D text, but on my machine it seems to be creating a 3D text.
<lockywolf> hah, but "linear extrude" fixes it, so no problem
sparsh-n has joined #openscad
sparsh-n has quit [Client Quit]
misterfish has quit [Ping timeout: 252 seconds]
<gbruno> [github] scrameta synchronize pull request #5584 (RFC: New general-purpose extrusion mechanism - 2025 refresh) https://github.com/openscad/openscad/pull/5584
<gbruno> [github] gsohler closed pull request #5711 (added 1st ctests, added missing import function, scintilla comment char) https://github.com/openscad/openscad/pull/5711
<gbruno> [github] gsohler opened pull request #5713 (added missing osimport function) https://github.com/openscad/openscad/pull/5713
ccox_ has joined #openscad
ccox has quit [Ping timeout: 268 seconds]
<gbruno> [github] gsohler synchronize pull request #5713 (added missing osimport function) https://github.com/openscad/openscad/pull/5713
<lockywolf> Is there an efficient way to open openscad models in Blender?
<lockywolf> I tried to re-export using "off", but it seems that the two have an incompatible interpretation of "off"
<lockywolf> I tried via stl, but it seems like a lot is lost in process.
guso78k has joined #openscad
sparsh-n has joined #openscad
<guso78k> when i remember correctly , the best format to export to blender is csg.
sparsh-n has quit [Client Quit]
<guso78k> it appears that python3.10 shows more errors. i should consider  getting it.
misterfish has joined #openscad
guso78k6 has joined #openscad
<guso78k> teepee. how did you get the extended info about fn yesterday ? i can download the archives, but, it does not contain the --rerun-failed information.
<teepee> what do you mean with rerun failed information?
<teepee> I downloaded that zip file attached to the github action runs
<teepee> which is the same as the local file it generates when running tests
<guso78k> yes, i found, downloaded and unpacked the zip file.
<guso78k> the only evidence of the error i found is this one: https://bpa.st/PCVA
<guso78k> i tells that it *did* fail and shows how to run --rerun-fail
<guso78k> i cannot (yet) start the --rerun-failed in the ci cloud
teepee_ has joined #openscad
guso78k has quit [Quit: Client closed]
teepee has quit [Ping timeout: 264 seconds]
teepee_ is now known as teepee
guso78k6 has quit [Quit: Client closed]
guso78k has joined #openscad
guso78k has quit [Quit: Client closed]
guso78k has joined #openscad
guso78k has quit [Quit: Client closed]
mmu_man has joined #openscad
guerd has joined #openscad
Guest1 has joined #openscad
Guest1 has quit [Client Quit]
nomike has joined #openscad
nomike_ has joined #openscad
L29Ah has joined #openscad
nomike has quit [Ping timeout: 245 seconds]
<church_> lockywolf: it is 2D, if you F6-render. it "looks" 3D due in F5-preview 2d objects (for looks only) rendering as prefixed (IIRC 1mm) height. but in reality it's 2d, and becomes 3d only if you create 3d object from it, via eg. linear extrude/rotate extrude/hull or minkowski
<church_> eg. create other 2d objects like square() or circle(), will be same "looks" of 3d (in F5-preview)
nomike_ has quit [Quit: Leaving]
J25k21 has quit [Quit: Client closed]
J25k21 has joined #openscad
joso has quit [Ping timeout: 252 seconds]
guso78k has joined #openscad
<guso78k> 2d shapes looking like a 1-unit thick item is hardcoded. once the skin PR is merged 2D shapes can arbritarily sit in 3D space and can even be linear extruded from exact that position.
<church_> guso78k: i wonder if that hardcoded height shouldn't be something less, or scaled depending on zoom level, or if maybe 2D marked out in different color scheme (eg. it's easy to distinguish 2D from 3D in F6-render due different color scheme)
<guso78k> yes, i could appreciate that too. feel free to make a PR for https://github.com/openscad/openscad/blob/master/src/core/CSGTreeEvaluator.cc#L177-#L218
guerd has quit [Read error: Connection reset by peer]
<lockywolf> guso78k guso78 are you the same person?
<lockywolf> I found that I can export .off into meshlab, and then export .ply from meshlab and import into Blender.
<guso78k> yes,  just different  apps which use these accounts
Reisga2449 has joined #openscad
<gbruno> [github] dan-p3rry opened issue #5714 (Allow more than one 3D export option in the GUI) https://github.com/openscad/openscad/issues/5714
guso78k has quit [Quit: Client closed]
guso78k has joined #openscad
<guso78k> looking at: https://en.wikipedia.org/wiki/PLY_(file_format)#:~:text=PLY%20is%20a%20computer%20file,dimensional%20data%20from%203D%20scanners.
<guso78k> it would be super easy to derive export-asciistl to export-ascii-ply
<guso78k> so where is the trick ?
<lockywolf> guso78k: are you asking me?
<lockywolf> I don't know
<lockywolf> I barely started looking at 3D modelling.
<lockywolf> But scad->off->meshlab->ply->blender looks much better than scad->stl->blender
<teepee> guso78k: what do you mean by trick? it seems like ply export would be very easy to implement
<guso78k> teepee exactly. but at the same time its not there. i am questining myself if there could be hidden obstacles
<teepee> well, it would be nice to then also have an import, but it's not a good format for that :)
<teepee> but then only slightly worse than stl
<guso78k> basically you need regular expressions to parse ascii, and they might be slow
<teepee> actually if ply has the faces list, it's much better than stl
<teepee> meh, regex :(
<guso78k> yeah, ply could immediately go into PolySetBuilder
<teepee> if you want to see c++ magic, there's a very cool thing in boost
<guso78k> not very famliar with boost
<lockywolf> boost::spirit ?
<teepee> yes spirit/qi
<teepee> that imports http://www.aertia.com/docs/priware/IDF_V30_Spec.pdf files directly into data structures
<teepee> it basically just declares the grammar using c++ constructs and that's it
<guso78k> ahh, its somewhat successor of yacc+lex
<guso78k> so all new ascii imports shall use boost::sprit '=D '=D ?
<teepee> I would not say that, but regexp parsers often end up slow and very difficult to fix if issues are found
<teepee> other parsers are fine, like wie also have lextertl.h and parsertl..h which is somewhere between flex/bison and spirit
<guso78k> BTW i managed to ctest with python10 and it passed fine locally. i am dependent on some further magic input.
<lockywolf> I am surprised to hear that yacc-derived parsers (including boost::spirit) are faster than regexps.
<lockywolf> because regexps resolve "regular expressions", and yacc resolves "context-free expressions", which are strictly stronger
<teepee> dependds heavily on the number and complexity of the regex of course
<teepee> but often the regex start to get messy and you have like 20 to check for each line
<teepee> where a single state machine with lookup can just go through the tokens in sequence
<teepee> and ascii formats like stl or ply tend to get huge, people have posted 200mb stl files on thingiverse
<teepee> guso78k: I have updated the appimage so it can do ssl in python3.10, otherwise it complains that the pip url is https and cannot access
<teepee> with that it can already create a venv
<teepee> not sure yet how to make that easily available to the user
<guso78k> ahh ok. you plan to put pip command into source code window ?
<guso78k> imho its nicer if you could launch : ./openscad -pip_install <package> and i already "had" some solution
<teepee> from gui should ideally something like "select folder for venv" and that's it
<guso78k> i know the name of the c function which is called when you call 'python -m <modulename>'
<guso78k> it should definitely be "self" python which runs the pip so you make sure to receive compatible pip packages
<teepee> yep
guso78k has quit [Quit: Client closed]
guso78k has joined #openscad
<guso78k> teepee, this is how you can run pip: https://bpa.st/BG6Q
<teepee> I found that in venv:
<guso78k> it will use sys.argv as arguments
<teepee> from pip._internal.cli.main import main
<teepee> main()
<guso78k> ok,  this is one step ahead of mine.
<teepee> but that runpy might be the new correct thing :)
<guso78k> my solution also has an '_'  which might indicate internal function
<teepee> the other one has even _internal like really pointing to "internal" twice :)
<guso78k> both solution need to redirect sys.exit. in any case if this is called via ./openscad -install <packaganame> the exit does not bother
misterfish has quit [Ping timeout: 252 seconds]
Guest61 has joined #openscad
Guest61 has quit [Client Quit]
guso78k has quit [Ping timeout: 240 seconds]
stealth_ has joined #openscad
bertronika has joined #openscad
J25k21 has quit [Quit: Client closed]
J25k21 has joined #openscad
sparsh-n has joined #openscad
<gbruno> [github] dan-p3rry opened issue #5715 (Menu bar disappears when moving window to second monitor) https://github.com/openscad/openscad/issues/5715
sparsh-n has quit [Quit: Client closed]
stealth_ has quit [Remote host closed the connection]
guso78k has joined #openscad
<gbruno> [github] jordanbrown0 opened pull request #5716 (Add missing "param" and "pov" in help. Copy edit. Fixes #5707.) https://github.com/openscad/openscad/pull/5716
misterfish has joined #openscad
guso78 has quit [Ping timeout: 265 seconds]
guso78 has joined #openscad
guso78k has quit [Quit: Client closed]
teepee_ has joined #openscad
teepee has quit [Ping timeout: 264 seconds]
teepee_ is now known as teepee
misterfish has quit [Ping timeout: 268 seconds]
<gbruno> [github] kintel pushed 1 modifications (Add missing "param" and "pov" in help. Copy edit. Fixes #5707. (#5716)) https://github.com/openscad/openscad/commit/97ae9c5eaf04dc3f555922f3189fc15671a0053f
<gbruno> [github] kintel closed pull request #5716 (Add missing "param" and "pov" in help. Copy edit. Fixes #5707.) https://github.com/openscad/openscad/pull/5716
<gbruno> [github] kintel closed issue #5707 (cli option export-format = param not in the help) https://github.com/openscad/openscad/issues/5707
guso78k has joined #openscad
NZGate has joined #openscad
<NZGate> I have created a program to design gates and it works OK but I want to add the ability to calculate the total lineal meters of wood used in the gate. I cant see how to do due to the fact that you cant change a global variable in a module.  Is there a way around this? Alternatively is there a way to write to another file so I could generate a
<NZGate> custlist in another file (CSV?)  This would also be useful to estimate the cost of material for each part etc.
<NZGate> I tried using special variables but they seem to have the same limitations
othx has quit [Read error: Connection reset by peer]
othx has joined #openscad
<NZGate> The only way I can think of is to use functions to generate all of the data in one level first and then overwrite a variable in the same scope and then output this to the drawing somehow or Echo and then use the data generated by the functions to draw the objects, comments??
<guso78k> If you happen to be a linux user: Latest AppImage https://files.openscad.org/snapshots/OpenSCAD-2025.02.27.ai23820-x86_64.AppImage got support to code your task in python instead. In Python its easy to sum up  the meters and create a csv file.
sparsh-n has joined #openscad
bertronika has quit [Quit: Konversation terminated!]
sparsh-n has quit [Quit: Client closed]
<gbruno> [github] t-paul pushed 2 modifications (Python updates (#5712) * Python: Fix include. * Python: Fix typo.) https://github.com/openscad/openscad/commit/85fb949aee533ff631778930d8b5158eba7e149d
<gbruno> [github] t-paul closed pull request #5712 (Python updates) https://github.com/openscad/openscad/pull/5712
misterfish has joined #openscad
sparsh-n has joined #openscad
sparsh-n has quit [Client Quit]
misterfish has quit [Ping timeout: 260 seconds]
NZGate has quit [Quit: Client closed]