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
aiyion has joined #openscad
fling has quit [Ping timeout: 268 seconds]
fling has joined #openscad
pbsds has quit [Ping timeout: 252 seconds]
pbsds has joined #openscad
LordOfBikes has quit [Ping timeout: 268 seconds]
LordOfBikes has joined #openscad
J1A8474 has joined #openscad
<peepsalot> should the menu action Edit->Copy be expected to copy from console if focus was last there?
J1A84 has quit [Ping timeout: 252 seconds]
<InPhase> Hmph.
<peepsalot> i have an idea for what is causing issue #4060, but not sure how to solve in Qt
<InPhase> I thought it did. Ctrl-C does this, and Edit->Copy says its shortcut is ctrl-C, but it doesn't do it like ctrl-C does.
<InPhase> I'm a keyboard person so I never noticed the menu option was broken.
<InPhase> I do in fact copy out of there quite a bit.
<peepsalot> this action is set to be called by any child of mainwindow https://github.com/openscad/openscad/blob/master/src/gui/MainWindow.ui#L830-L838
<peepsalot> but the action is bound to TabManager which only ever grabs from editor
<InPhase> Where is Ctrl-C getting picked up?
<InPhase> Is this built-in?
<peepsalot> what do you mean "picked up"? the shortcut is set right there in that QAction definition
<InPhase> peepsalot: Go to the console, select something, and hit ctrl-C. It works fine.
<InPhase> So this has a separate pathway.
<InPhase> But possibly that goes straight to the console action built-ins.
<peepsalot> ok, from console, yeah I'm guessing that QPlainTextEdit's built in is taking over somehow, but maybe that just doesn't work on Mac (the crux of #4060)
<InPhase> Ah, I see.
<peepsalot> I actually find if surprising that Ctrl-C works in Console on any platform, given the way that menu action is defined
<peepsalot> and i see this has been a headache in Qt for over a decade https://www.qtcentre.org/threads/40180-Same-shortcut-for-different-actions-in-different-widgets
<InPhase> Yeah. I was looking in ui_MainWindow.h, the generated file.
<InPhase> It sets it as an action on MainWindow, which can then get overridden by other things in focus.
<InPhase> Here though, that does the right thing for us.
<InPhase> But somehow the console is just not getting the shortcut set on mac.
<InPhase> Do we know if Cmnd-C working in the editor under mac?
<peepsalot> it gets connected to TabManager here though? https://github.com/openscad/openscad/blob/master/src/gui/TabManager.cc#L50
<InPhase> s/working/is working/
<peepsalot> from ChrisCoxArt in #4060: "Pressing command-c, even after targeting and selecting text in the console, still copies what is selected in the editor." on Mac I can only assume
<InPhase> Excellent. So we need the shortcut in the console to do the same logic to get the keyboard part reenabled.
<InPhase> In ui_Mainwindow.h we have: https://bpa.st/JQPQ
<InPhase> Slurping out the relevant bits, I think.
<peepsalot> yeah that corresponds exactly to the section of the .ui file I linked
<InPhase> I'm still working on how Console does it, because that copy is NOT in the .ui file.
<InPhase> Clear and Save As are in there.
GNUmoon2 has quit [Remote host closed the connection]
GNUmoon2 has joined #openscad
<InPhase> I think it might come from the createStandardContextMenu items.
<InPhase> I think Copy and Select All are brought in from QPlaintTextEdit by default in the standard context menu.
<InPhase> Then we insert Clear above it, and append Save As below it.
<InPhase> So the real problem is that Qt on mac does not by default either add this copy element, or it does not give it the standard mac shortcut...
rvt has quit [Ping timeout: 268 seconds]
<peepsalot> the context menu is there for mac apparently, because they say "looks like we have to use the context (right click) menu to copy text in the console."
<peepsalot> no idea if the shortcut keys are displayed within that context menu though, no screenshot
rvt has joined #openscad
GNUmoon2 has quit [Remote host closed the connection]
GNUmoon2 has joined #openscad
<InPhase> peepsalot: That's a whole lot of conditions it checks before enabling the shortcut in that action menu.
<InPhase> That macro is used below where it slaps the shortcut key in.
<InPhase> Things like style hints,.. I'm not sure where to begin looking for all that. But any one of those conditions would turn it off.
<peepsalot> how does qwidgettextcontrol relate to QPlainTextWidget?
<InPhase> I thought that was in the tree.
<InPhase> I was trying to go fast. Might have taken a wrong turn. Let me check.
<InPhase> Yeah, I got it right.
<InPhase> QPlainTextWidget uses a private QPlaintTextEditControl which inherits from QWidgetTextControl which is where that comes from.
<InPhase> And creating that context menu passes the call down to that.
<InPhase> And then our bug seems to pop out of this 1990s era macro because someone couldn't be bothered to write a function. :)
<peepsalot> ah ok. but doesn't that only affect the display of the shortcut text, and not the registration of shortcut keys
<InPhase> No, that's the key itself.
<InPhase> The text is present either way.
<InPhase> Line 2331: a = menu->addAction(tr("&Copy") + ACCEL_KEY(QKeySequence::Copy), this, SLOT(copy()));
<InPhase> Or how does this work.
* InPhase sighs at Qt.
<peepsalot> yeah the first parameter is just for the text QString
<InPhase> But it parses that string for keyboard shortcuts I think.
<InPhase> The &C for example.
<InPhase> I'm just trying to find verification it parses the right side as well.
<InPhase> Hmph. Well that looks like it doesn't set the shortcut at all.
<InPhase> I drove through the QAction and QMenu code.
<InPhase> But... I mean... it's set here. So I don't know what's happening.
<InPhase> Nope. Past my prime functioning hour for tonight. I could not spot how it actually establishes the shortcut as existing. Although if it is written competently it will use the same conditions to label the default shortcut as there as it would to enable it. I just can't find where that happens.
rawgreaze_ has joined #openscad
rawgreaze has quit [Ping timeout: 252 seconds]
rvt has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
zingos has quit [Quit: Ping timeout (120 seconds)]
zingos has joined #openscad
rvt has joined #openscad
GNUmoon2 has quit [Remote host closed the connection]
GNUmoon2 has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 268 seconds]
teepee_ is now known as teepee
ur5us has joined #openscad
<gbruno> [github] F14Claude opened issue #4324 (Not Watertight) https://github.com/openscad/openscad/issues/4324
SamantazFox has quit [Remote host closed the connection]
SamantazFox has joined #openscad
ccox has quit [Ping timeout: 268 seconds]
<J1A8474> fun to use oSCAD out of its scope https://www.printables.com/model/257037-katze
<teepee> meow
ghee has joined #openscad
ghee has quit [Quit: EOF]
Guest49 has joined #openscad
Guest49 has quit [Client Quit]
<gbruno> [github] t-paul closed issue #4324 (Not Watertight) https://github.com/openscad/openscad/issues/4324
RichardP_ has joined #openscad
RichardPotthoff has quit [Read error: Connection reset by peer]
JakeSays has quit [Read error: Connection reset by peer]
JakeSays has joined #openscad
<Friithian> well let's see if this 10x10x4 box of PLA sticks to another box of TPC. Only costs me 3¢ :D
teepee has quit [Remote host closed the connection]
<Friithian> oh god trying to do math in the morning to figure out what size cylinder to make is hell
teepee has joined #openscad
<J1A8474> guess you should be awake for that
teepee_ has joined #openscad
<Friithian> InPhase: PLA seems to stick to TPC fairly well
<Friithian> currently trying to diagram shit to see if I can geometry me way to an answe
<Friithian> r
<Friithian> oh god I'm going to have to do actual math
<Friithian> SOH CAH TOA
teepee has quit [Ping timeout: 268 seconds]
teepee_ is now known as teepee
<Friithian> my geometry teacher would kill me if they saw me struggling with this
<Friithian> I can recall memories of doing this exact type of problem I just don't remember in my lack of sleep state of mind I am in
<InPhase> Friithian: Excellent. Good to hear those two adhere well. :)
<Friithian> I may make a 2 hemispheres with a core of PLA and a thick skin of TPC
<Friithian> bouncy ball :D
<Friithian> ok, https://i.imgur.com/vDPB7os.png with X Y and Z how the feck do I find the length of the red line
<Friithian> my mind just cnanot do it
<teepee> calculate top angle based on Z and X
<teepee> calculate y based on that angle and Z - Y
<Friithian> ok, so, I need an equation from someone because I tried that and my mind just was not able to get it to work
<teepee> let me try :)
<Friithian> thank you!
<J1A8474> that is why i use libs ..   all that headache only once to make the lib
<Friithian> well this is the headache making the lib :D
<J1A8474> z/x  = (z-y)/?
<J1A8474> so (z-y)/(z/x) should be your x2
<J1A8474> or  x/z *(z-y)
<Friithian> well, I have no idea if that math is right and I am doing the modeling wrong or that math is wrong. for reference I am trying to get that cylinder in the picture to be the same width as the blue square it is on
<J1A8474> h2 is the cutting height
<J1A8474> or Y from your image
<J1A8474> X is s/2  from your image
<J1A8474> i think your mixup is that size is diameter and you put it into radius calculation
<teepee> yep, this works - https://pastebin.com/bbWMbQDx
<teepee> I have the sin/asin in there showing the 2 steps
<teepee> but that obviously is a nop combined
<teepee> giving your formula
<teepee> Friithian: in case you don't know that feature, you can live-change the numbers in the built-in editor using ALT+CURSOR-UP/DOWN
<J1A8474> Friithian  just  replace  "size" with "size/2"  in your code for radius
J1A8474 is now known as J1A84
<Friithian> thank you all for doing math for me
qeed has quit [Read error: Connection reset by peer]
qeed has joined #openscad
<Friithian> so… looking at the equation now. I literally have that written on my scrap paper, just I had the numerator and denominator switched.
<J1A84>  if you doing it on both ends it should still work   as   height/base  or base/height  is  both a constant..  however i also mix up these very often  - so one solution strategy is just try   the switcheroo  without thinking too much and see if the design fits Ü
* J1A84 sucks at math
<Friithian> I'm getting a minor in math so uh :D
<Friithian> oh cool that customizer puts the comments you make next to a variable next to it
<J1A84> only if directly above  (not behind or with space)
<Friithian> which is perfect
<Friithian> damnit TPC doesn't get melted by MEK
teepee has quit [Remote host closed the connection]
<Friithian> does openscad support multi-material/export seperately
<J1A84> no but you can use lazy union
<J1A84> meaning you can export multiple objects at top level
<Friithian> how do you use lazy union?
<J1A84> https://www.printables.com/model/257037-katze   like here .. where  in one 3mf file are  the  ring and the inset  (overlaping) (and a version number)
<J1A84> you use the snapshot version and activate lazy union feature in preferences
<Friithian> oh that means I finally need to build it from source
<J1A84> everything at top level will not get a union then
<J1A84> also loops  will be separated  (could need a union in intersections )
<J1A84> you can just  make modules  for each material and then call the module  in a loop
<J1A84> at toplevel
<J1A84> keep in mind this is a experimental feature
<Friithian> I thrive on the bleeding edge
<J1A84> an
<Friithian> rip my poor laptop with 4 logical cores
<J1A84> dual core sounds like 15years old
<Friithian> Intel i7-6600U
<Friithian> I have a 5900x in my desktop
<J1A84> hm 7 ..  seems they have done that longer than i thought
<J1A84> 7years old
<InPhase> Friithian: I have 8 physical cores in my laptop, which means with OpenSCAD I get... the same performance as with a single core. ;)
<Friithian> honestly I should just get a proper keyboard and mouse for my steam deck and do everything on it lol
<Friithian> InPhase: but when building you can use all the cores
<InPhase> Yes, that was radically improved when I upgraded to this laptop.
<InPhase> Build times dropped to 2.5 minutes, until peepsalot started messing around with the memory improvements (I think it was that change), and now it's a little over 3 minutes.
<Friithian> this was a cheap laptop I got for on the go, it's a thinkpad x1 carbon gen 4
<Friithian> when I get back ohme I'll build with my 5900x, see how long that takes with 24 logical cores
<J1A84> inPhase you don't have 8 OpenSCAD threads running.. one for each quadrant cube of the coordinate system
teepee has joined #openscad
<gbruno> [github] Teraslilja opened issue #4325 (Difference between linearly extruded polygon and polyhedron generates incorrect surface) https://github.com/openscad/openscad/issues/4325
<InPhase> J1A84: I do sometimes run two renders in parallel in different instances. :) But not often.
<Friithian> does openscad have gpu accel for rendering?
<InPhase> Not for any of the important bits.
<Friithian> heck
ur5us has quit [Ping timeout: 255 seconds]
fling_ has joined #openscad
fling has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
fling_ is now known as fling
teepee has quit [Remote host closed the connection]
fling has quit [Remote host closed the connection]
fling has joined #openscad
teepee has joined #openscad
<peepsalot> regarding Ctrl-C and Edit menu working between Editor and Console...
<peepsalot> i'm thinking to connect the action trigger signal to a new function in MainWindow, which would check if focus is in either Console or Editor, and call the appropriate copy() method
<peepsalot> does that sound like a proper way to deal with it?
<peepsalot> i am now wondering if for example, sections of text within customizer parameter would also be copyable
<peepsalot> it seems wrong to have to manually check focus, but i don't know how else to guarantee the correct thing is copied, while using a single/shared menu Action between widgets
<peepsalot> teepee: did you see any of this discussion from last night?
<InPhase> peepsalot: Is focus even still there after accessing the menu?
* peepsalot shrugs
<InPhase> peepsalot: You might need a handler for a signal whenever text is selected in either the editor or console, and then use that to toggle which was last used.
<InPhase> There IS a setting somewhere for whether or not text is selected, I remember seeing it somewhere deep in the Qt code dive I was going through last night. I did not check to see if there is a signal for it.
<InPhase> But that would need to cover both mouse and keyboard selection to be right.
<InPhase> peepsalot: I think part two would be to not use that built-in context menu, and instead manually insert those entries so that both the keyboard shortcut and the edit menu are working right cross-platform.
<InPhase> Ah, right there. selectionChanged signal.
<InPhase> That'd be the one.
<InPhase> I'm concerned those edits might let a selection stay active in both boxes at once. So it's really the last one selected that indicates user intent I think.
<peepsalot> there's also the possibility that all my hunches were wrong and none of this will fix the issue on mac XD
<InPhase> Yep!
<InPhase> But I think you're on the right track.
<InPhase> And I guess that issue has a captive audience of beta testers.
<peepsalot> InPhase: why selectionChanged over copyAvaiable signal? i don't really see how they differ
<InPhase> peepsalot: Oh. I misunderstood what that signal meant. I thought it was the status check that there is a selection available for copying. But I reread, and see it is precisely the thing needed, a signal that passes a true when you want to update the marker.
<peepsalot> not sure if QScintilla has any comparable signal builtin though
<InPhase> It's probably built on top of this.
<peepsalot> ah, nice
<gbruno> [github] Teraslilja edited issue #4325 (Difference between linearly extruded polygon and polyhedron generates incorrect surface) https://github.com/openscad/openscad/issues/4325
<peepsalot> where is othx btw?
<teepee> oh, poor bot
<teepee> peepsalot: I saw the discussion but did not follow everything
<teepee> thinking about this, shouldn't there be something like a single global copy action?
<teepee> as that would then also work in a menu entry
<peepsalot> teepee: yes, that's what I'd like to get working
J1A84 has quit [Quit: Client closed]
J1A84 has joined #openscad
<peepsalot> I was wondering if there was a way we could get bot to link to issues/PRs when #XXXX is sent in chat
<peepsalot> kind of like how it responds to youtube links
<teepee> sure, we just either need to convince gunnbr or produce a pull request :)
<teepee> well, or check with ndnihil if gbruno has such a feature
<ndnihil> hrm?
<teepee> linking #1234 to github issues
<teepee> is that something gbruno already knows about maybe?
<ndnihil> well, not by github issue, but it has a faq type function, however you have to manually maintain its list
<ndnihil> ? dark
<ndnihil> and it's not enabled here
<ndnihil> it's mostly astronomy things currently
<ndnihil> all the github stuff is two part and written just for #openscad
<ndnihil> web service and bot interface
<ndnihil> I didn't add anything specific to issues or automatic linking to github stuff
<teepee> ah, ok. no worries :)
<teepee> just making sure we are not missing something trivial
JakeSays_ has joined #openscad
JakeSays has quit [Ping timeout: 268 seconds]
JakeSays_ is now known as JakeSays
fling has quit [Write error: Connection reset by peer]
teepee has quit [Read error: Connection reset by peer]
fling has joined #openscad
teepee has joined #openscad
<J1A84> i think we need to clarify that "github Issue" doesn't mean issue with your design
<teepee> clarify where?
<J1A84> I assume people go to the website and follow the links
<J1A84> because they first make an github account and then open the issue
<J1A84> so these are no regular github user
<J1A84> maybe putting a  " Live Support - CHAT"  on top here http://openscad.org/community.html
<J1A84> or "Need HELP ⇒  live chat"
<J1A84> i assume github doesn't have different "issue" categories so it could be used also  as a support ticket system
gbruno has quit [Ping timeout: 268 seconds]
gbruno has joined #openscad
<teepee> J1A84: yeah, shuffling the website a bit is probably a good idea
<teepee> github always calls it issues, but they do have a new template system that will show up a list of different types with buttons to create one
<teepee> I have not checked if it's possible to directly attach labels, that would be nice
<J1A84> i think we have 20-30% support tickets  .. so is the question if we want them on github
<teepee> don't create an issue tho :)
<teepee> not really, I think a better place is the mailing list due to wider audience
<J1A84> i hope i didn't Ü
Non-ICE has joined #openscad
<J1A84> but also for issues a template with "minimal code to reproduce the issue"  and  "i think this is a bug in openSCAD or feature request"
* ndnihil creates an issue about creating issues
<teepee> also nice url github
<teepee> oh, and even some sort of form, that's even better than just a template for people to edit
<teepee> hmm, I'm not sure how to make the community page more obvious, but maybe the homepage needs fixing
<teepee> I don't have a good idea how to do that with the current layout unfortunately, maybe getting rid of that side bar is a start
<J1A84> so we can make a template " i just have a problem with my design " with default text ..  "i have already asked on maililnist and chat but nobody could help me there" "i am willing to pay for this extra service"
<J1A84> .. maybe we just rename "chat" in  "support"
ccox has joined #openscad
<teepee> J1A84: you mean on the community page? yeah, lets try that :)
Furor has joined #openscad
<J1A84> or better  instead of renaming  we add a big support button that links into webchat
<teepee> besides the download button on the homepage maybe?
Colere has quit [Ping timeout: 268 seconds]
<J1A84> that would be very prominent
<J1A84> i know a lot of people are  reluctant to register with e-mail  as they need for the mailing list -  so chat is the lowest entry  (i assume)
califax has quit [Read error: Connection reset by peer]
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
califax has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
<teepee> argh, css
<J1A84> maybe  "get Support"  else people think  this is a link to support oSCAD
<J1A84> or »Live Support«
<teepee> Get Help?
<J1A84> yeah  short and precise
<teepee> unfortunately I'm not getting it aligned like I want
<teepee> so that may need to wait for a bit more time
<teepee> I might manage a faked screenshot though
<gbruno> [github] thehans closed issue #4325 (Difference between linearly extruded polygon and polyhedron generates incorrect surface) https://github.com/openscad/openscad/issues/4325
<J1A84> .oO link to a fake github issue form
<teepee> that's way too ugly, that will need some more tries
<teepee> paste?
Furor is now known as Colere
<teepee> argh, right, no bot
snaked has quit [Quit: Leaving]
snaked has joined #openscad
KimK has quit [Quit: Leaving]
TheAssassin has quit [Ping timeout: 268 seconds]
TheAssassin has joined #openscad
snaked has quit [Ping timeout: 244 seconds]
emanuele6 has quit [Quit: WeeChat 3.6]
emanuele6 has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 268 seconds]
teepee_ is now known as teepee
emanuele6 has quit [Quit: system update]
emanuele6 has joined #openscad
KimK has joined #openscad
noonien has quit [Quit: The Lounge - https://thelounge.chat]
ccox has quit [Read error: Connection reset by peer]
noonien has joined #openscad
snaked has joined #openscad
ccox has joined #openscad