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
J25k89 has quit [Quit: Client closed]
J25k89 has joined #openscad
nomike has joined #openscad
<nomike> Hi
chris64 has quit [Ping timeout: 260 seconds]
<J25k89> Ho
drkow has joined #openscad
drfff has quit [Ping timeout: 265 seconds]
drkow has quit [Read error: Connection reset by peer]
chris64 has joined #openscad
sculptor_ has quit [Ping timeout: 244 seconds]
<JordanBrown> Ha!
J25k85 has joined #openscad
J25k89 has quit [Ping timeout: 272 seconds]
krushia has quit [Ping timeout: 245 seconds]
hyperair has quit [Ping timeout: 276 seconds]
hyperair has joined #openscad
hypera1r has joined #openscad
hyperair has quit [Ping timeout: 276 seconds]
teepee_ has joined #openscad
teepee has quit [Ping timeout: 244 seconds]
teepee_ is now known as teepee
<gbruno> [github] jordanbrown0 opened pull request #6023 (ValueIterator (generic iterator for types to return to CMM)) https://github.com/openscad/openscad/pull/6023
howiemnt1 has joined #openscad
howiemnt has quit [Ping timeout: 276 seconds]
hypera1r has quit [Read error: Connection reset by peer]
hyperair has joined #openscad
krushia has joined #openscad
<gbruno> [github] pkriens synchronize pull request #6022 (Provide $this and automatic context for functions in objects) https://github.com/openscad/openscad/pull/6022
<gbruno> [github] damienmarchal synchronize pull request #5778 (Add interactive visual feedack with right click.) https://github.com/openscad/openscad/pull/5778
krushia has quit [Quit: Konversation germinated!]
bitbasher has joined #openscad
J25k85 has quit [Quit: Client closed]
J25k85 has joined #openscad
<gbruno> [github] damienmarchal synchronize pull request #5778 (Add interactive visual feedack with right click.) https://github.com/openscad/openscad/pull/5778
kasesag has quit [Server closed connection]
kasesag has joined #openscad
nomike has quit [Ping timeout: 252 seconds]
J25k85 has quit [Quit: Client closed]
J25k85 has joined #openscad
RoyK has quit [Ping timeout: 248 seconds]
RoyK has joined #openscad
ToAruShiroiNeko has quit [Read error: Connection reset by peer]
J25k85 has quit [Quit: Client closed]
J25k85 has joined #openscad
ToAruShiroiNeko has joined #openscad
Guest47 has joined #openscad
<ali1234> interesting post on the subreddit today. people spent longer trying to write a substr function than actually solving the request
<ali1234> we desperately need slicing
<ali1234> and join()
nomike has joined #openscad
Guest47 has quit [Quit: Client closed]
fling has quit [Ping timeout: 244 seconds]
<nihil> eh, leave slicing to the slicers
<nihil> though, I did for a while use openscad as a slicer for a resin printer
<nihil> shell script that I would use giant cubes to diff out the slices I wanted to export pictures of
<nihil> was kinda crap but it worked for the most part
<ali1234> no, vector slicing
<nihil> ah
<ali1234> like python has
sculptor has joined #openscad
sculptor has quit [Changing host]
sculptor has joined #openscad
bitbasher has quit [Ping timeout: 260 seconds]
<gbruno> [github] damienmarchal synchronize pull request #5778 (Add interactive visual feedack with right click.) https://github.com/openscad/openscad/pull/5778
bitbasher has joined #openscad
howiemnt1 has quit [Ping timeout: 248 seconds]
howiemnt has joined #openscad
<bitbasher> i have implemented slicing and join based on some routines that i found in the text handling part of the relativity library .. they are on my fork of relativity and i would need to run the test quite before showing them in public .. but if you can used them i have em
<gbruno> [github] pca006132 pushed 1 modifications (update manifold to v3.2.0) https://github.com/openscad/openscad/commit/0a48c74e15c2193e26873cadabe384622cbe37f2
<gbruno> [github] pca006132 opened pull request #6024 (update manifold to v3.2.0) https://github.com/openscad/openscad/pull/6024
<teepee> ali1234: code exists, needs to be trimmed down a bit and refreshed
<teepee> also what should join() what str() does not?
<gbruno> [github] pca006132 pushed 2 modifications (faster lexer) https://github.com/openscad/openscad/commit/399e4a2f3a9a629dd6031c44e1ab3ac7dffdf956
<gbruno> [github] pca006132 pushed 2 modifications (faster highlight by batching) https://github.com/openscad/openscad/commit/2f29e5e09db743e3a9ae4020ff9b504494060966
<gbruno> [github] pca006132 opened pull request #6025 (faster syntax highlighting) https://github.com/openscad/openscad/pull/6025
<gbruno> [github] pca006132 pushed 1 modifications (upstream fix) https://github.com/openscad/openscad/commit/5825bbde7034c09b72ca07b281cfa42b19d27a29
<gbruno> [github] pca006132 synchronize pull request #6024 (update manifold to v3.2.0) https://github.com/openscad/openscad/pull/6024
little_blossom has quit [Ping timeout: 252 seconds]
little_blossom has joined #openscad
<gbruno> [github] jstebbins opened pull request #6026 (Python: fix crash in union/difference/intersection) https://github.com/openscad/openscad/pull/6026
<pca006132> wondering if anyone encountered qt6 applications that are using opengl (e.g. openscad) not working under wayland with nvidia drivers, unless you set QT_QPT_PLATFORM=xcb which forces xwayland...
<teepee> xcb forces wayland? that sounds wrong
<teepee> oh, *x* wayland, right
<teepee> I only have tried qt5 so far
<teepee> hmm, let me check the flatpak
<pca006132> it outright crashed openscad with "Framebuffer not supported"... feels like some ancient opengl version is selected
<teepee> that has Qt version: 6.8.3, works fine, but I don't have nvidia
<teepee> what's openscad --info showing?
<pca006132> !paste
<pca006132> paste!
<othx> paste is https://bpa.st for .scad files and other text like long error reports, https://pasteboard.co/ or https://imgur.com/ for images
<pca006132> https://bpa.st/B5NA the full thing
<teepee> OpenGL Version: 4.6.0 sounds good
<teepee> but that's what openscad code does, not sure if Qt creates a separate context
<teepee> does it work with the software renderer?
<pca006132> should work, switching to xwayland also works so I guess it is some wayland shenanigans...
bitbasher has quit [Ping timeout: 276 seconds]
<pca006132> I encounter this kind of issue quite often, e.g. https://github.com/ahrm/sioyek/issues/1283
<pca006132> so idk if this is something in qt
<teepee> could be mesa too, didn't they massively update the nvidia stuff lately
<pca006132> ah
<pca006132> probably time to update my system
<gbruno> [github] pca006132 synchronize pull request #6024 (update manifold to v3.2.0) https://github.com/openscad/openscad/pull/6024
<gbruno> [github] pca006132 pushed 1 modifications (update manifold) https://github.com/openscad/openscad/commit/7753a090a0e08db60559ff168c8ddcce31a76adc
<teepee> oh, that is not mesa but the proprietary driver?
guso78k has joined #openscad
J25k85 has quit [Quit: Client closed]
J25k85 has joined #openscad
<pca006132> yes
<pca006132> I can try if I can make things work with the mesa driver...
<pca006132> I did a gl_dump()
<teepee> oh, ouch OpenGL Version: OpenGL ES 3.2 NVIDIA 570.153.02
<teepee> *ES*
<pca006132> seems like a wayland thing
<pca006132> annoying
<pca006132> don't know enough about opengl/wayland/nvidia to fix this
bitbasher has joined #openscad
guso78k has quit [Quit: Client closed]
<bitbasher> hey experts (he asked hopefully) when the docs say that a program can import a font into a running script using the "use" statement .. but knowing that "use" is deprecated, does that mean that "import" will do the same?
<teepee> no, import can't do that
<teepee> why is use<> deprecated?
<bitbasher> it was noted as deprecated in the docs
<bitbasher> beyond that i dunno
<bitbasher> well as the functionality is diff i will take the deprecated off of the "use" docs
<teepee> I'm not aware of any deprecation there, do you have a link to that part?
bitbasher has quit [Read error: Connection reset by peer]
bitbasher has joined #openscad
bitbasher_ has joined #openscad
bitbasher has quit [Read error: Connection reset by peer]
guso78k has joined #openscad
<InPhase> Uhm, I don't think use<> is deprecated.
<guso78k> it appears that std::shared_ptr<Type>. reset(newptr) just changes one pointer reference from oldptr to newptr  . Is it possible to change all ptr references from oldptr to newtr which are member of the shared group ?
<bitbasher_> i will update the docs about use
<hyperair> guso78k: no, unless you use a shared_ptr<shared_ptr<Type>>
<teepee> but that observation contradicts https://en.cppreference.com/w/cpp/memory/shared_ptr/reset no?
<guso78k> hyperair, thx for reply. i dont have that type unfortunately.
<guso78k> ideally i want to change the content where all shared point to, but its allocation might be too small and send prg to nirvana
<teepee> ah, no it does not
<guso78k> teepee. i well understood, that reset just links one shared_ptr only to a new, other managed memory
<InPhase> ali1234: This has been a solved problem for like 6 years. :) https://github.com/thehans/funcutils/blob/master/string.scad#L3-L11
<ali1234> bosl has a completely different solution
teepee_ has joined #openscad
teepee has quit [Ping timeout: 244 seconds]
teepee_ is now known as teepee
<bitbasher_> folks .. the use statement does indeed add a font to the running script and it shows up in the Help>Font List panel but...
<JordanBrown> teepee join() would join the elements of an array, which str() can't do.
<bitbasher_> the docs say that drag and drop of a font file should add it .. not clear if it is added to the script, or to the app, or if it is perm imported or just temp .. any one know something about what happens when dropping a non-.scad file into the editor window ?
<teepee> hmm, but only arrays of strings? or also automatic recursive to-string?
<teepee> bitbasher_: it adds a use</path/to/font> I think
<teepee> if you drag an svg, you get an import("/path/to/svg");
<JordanBrown> teepee no opinion on non-strings.
<bitbasher_> teepee .. str( "stuff", [1,2,3], "more") does append everything now?
<bitbasher_> err.. no?
<JordanBrown> Drag and drop anything other than a .SCAD (or maybe .CSG, not sure) just adds some sort of import.
<ali1234> only arrays of strings
<JordanBrown> ECHO: "stuff[1, 2, 3]more"
<JordanBrown> a = [ "apple", "banana", "orange" ];
<JordanBrown> echo(str(a));
<JordanBrown> ECHO: "["apple", "banana", "orange"]"
<JordanBrown> where echo(join(a)) would produce
<JordanBrown> ECHO: "applebananaorange"
<ali1234> join(a, sep=" ") -> "apple banana orange"
Guest38 has joined #openscad
Guest38 has quit [Write error: Connection reset by peer]
<JordanBrown> yes, optional delimiter
<ali1234> join([1,2,3]) would be whatever openscad's equivalent of TypeError is
<JordanBrown> Two different approaches: for JS it's an operation on an array that takes a delimiter as an arg; for Python it's an operation on the string delimiter that takes the array as an argument.
<JordanBrown> join([1,2,3]) I'd be fine with an error. I'd also be fine with automatically converting to string and then joining.
<teepee> I guess a separator would be pretty useful as it's very annoying to manually handle that
<ali1234> L = [1,2,3]; join([for i = [0:len(L)] str(L[i])]);
<ali1234> = "123"?
JakeSays has quit [Remote host closed the connection]
<ali1234> i guess i'd be fine if it implicitly did that too
<bitbasher_> the JS version is a lot nicer to use .. and pls allow the delimiter to be any string, not just a single delim char
JakeSays has joined #openscad
<ali1234> yes, absolutely a string
<JordanBrown> Yes, though the simpler case is join([ for (v = L) str(v) ])
<JordanBrown> Of course a string. It would be more work to only allow a single character.
<bitbasher_> so new = join( <many things>, " in-between " )
J25k85 has quit [Quit: Client closed]
J25k85 has joined #openscad
<bitbasher_> would it make sense that join() is an operator ? as opposed to a function .. then join( <join params> ) vector;
<bitbasher_> or is the syntax of join( vector, params ); easier
<bitbasher_> err .. no .. the operator cannot return a result so that idea fails
<bitbasher_> it has to be new = join( vector, "delim" );
<bitbasher_> would it be too funky to do ...
<bitbasher_> new=join( vector, for(d=delims) d ); where vector is like [ 1,2,3] and delims =[ " ",":"] is one element shorter so each "d" goes between two "v" items .. or is that just nuts?
<JordanBrown> The expression operators (let, assert, echo) are IMHO just too darned magic and should not be emulated.
<bitbasher_> LOL .. not my fault they are already in the language
<JordanBrown> Yep.
<bitbasher_> Hi Jordan :)
<JordanBrown> Hello.
<JordanBrown> No strong opinion on having a vector for the second arg. If your args are known-length and relatively small - both implied by your example - then you can just use str().
Guest66 has joined #openscad
<Guest66> / Parameter
<Guest66> plate_length = 210; // Gesamtlänge der Platte (mm)
<Guest66> plate_width = 30; // Breite der Platte (mm)
<Guest66> plate_thickness = 5; // Dicke der Grundplatte (mm)
<Guest66> text_height = 2; // Erhebung der Buchstaben über der Platte (mm)
<Guest66> font_size = 20; // Schriftgröße
<Guest66> font = "DejaVu:style=Bold"; // Schriftart
<Guest66> module fatzer_plate() {
<Guest66>     // Grundplatte
<Guest66>     cube([plate_length, plate_width, plate_thickness]);
<Guest66>     // Erhabener Text
<Guest66>     translate([5, 5, plate_thickness])
<Guest66>         linear_extrude(height = text_height)
<Guest66>             text("FATZER", size = font_size, font = font);
<Guest66> }
<Guest66> fatzer_plate();
<JordanBrown> Guest66 is there a question there?
<Guest66> ja
<JordanBrown> And, for posting more than a line or two, a paste tool is best.
<JordanBrown> paste!
<othx> paste is https://bpa.st for .scad files and other text like long error reports, https://pasteboard.co/ or https://imgur.com/ for images
Guest66 has quit [Client Quit]
<JordanBrown> Especially, not your fault, because for some reason HexChat doesn't support Copy.
<JordanBrown> OK, that time it worked.
<JordanBrown> And the question is...?
<ali1234> i dont think vector of delims should be supported. that is what zip is for
<gbruno> [github] jordanbrown0 synchronize pull request #6023 (ValueIterator (generic iterator for types to return to CMM)) https://github.com/openscad/openscad/pull/6023
<JordanBrown> OK, time to pretend to do real work.
<InPhase> JordanBrown: lol. "is there a question there?" "ja" *quits*
J25k85 has quit [Quit: Client closed]
J25k85 has joined #openscad
bitbasher_ has quit [Ping timeout: 244 seconds]
TheAssassin has quit [Ping timeout: 244 seconds]
TheAssassin has joined #openscad
<JordanBrown> InPhase I have enter/leave notifications turned off so didn't notice.
<InPhase> JordanBrown: It happened about 1 minute after "ja". :)
<JordanBrown> From what you said, I figured as much.
<JordanBrown> There have been several instances over the last few days of GuestXX driving by, dropping off a half-screen of program, and leaving without any prose.
<InPhase> Yes. I still really want to hear why those people are doing that. But they just don't answer such questions.
bozo16 has quit [Quit: Leaving]
peepsalot has quit [Quit: Connection reset by peep]
bozo16 has joined #openscad
peepsalot has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 244 seconds]
teepee_ is now known as teepee
howiemnt1 has joined #openscad
howiemnt has quit [Ping timeout: 260 seconds]