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
ur5us has quit [Ping timeout: 250 seconds]
splud_ has joined #openscad
splud has quit [Ping timeout: 276 seconds]
KimK has quit [Ping timeout: 256 seconds]
splud_ has quit [Client Quit]
splud_ has joined #openscad
splud_ has quit [Remote host closed the connection]
splud has joined #openscad
KimK has joined #openscad
splud_ has joined #openscad
splud has quit [Killed (NickServ (GHOST command used by splud_!~noneya.bi@c-73-189-129-115.hsd1.ca.comcast.net))]
splud_ has joined #openscad
splud_ has quit [Changing host]
KimK has quit [Ping timeout: 276 seconds]
J2252 has joined #openscad
J22 has quit [Ping timeout: 252 seconds]
retrosenator has quit [Read error: Connection reset by peer]
LordOfBikes has quit [Ping timeout: 240 seconds]
ur5us has joined #openscad
LordOfBikes has joined #openscad
arebil has quit [Quit: My keyboard has gone to sleep. ZZZzzz…]
arebil has joined #openscad
arebil has quit [Quit: My keyboard has gone to sleep. ZZZzzz…]
arebil has joined #openscad
fling has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 250 seconds]
fling has joined #openscad
KimK has joined #openscad
rvt_ has joined #openscad
rvt_ has quit [Quit: rvt_]
fling has quit [Remote host closed the connection]
fling has joined #openscad
rvt_ has joined #openscad
rvt_ has quit [Quit: rvt_]
rvt_ has joined #openscad
rvt_ has quit [Quit: rvt_]
arebil has quit [Ping timeout: 276 seconds]
Joel has quit [Ping timeout: 248 seconds]
Joel has joined #openscad
arebil has joined #openscad
hiredman has quit [Ping timeout: 256 seconds]
hiredman has joined #openscad
<gbruno> [github] dcherrera opened issue #4248 (Feature request: iOS and android app) https://github.com/openscad/openscad/issues/4248
<gbruno> [github] t-paul closed issue #4248 (Feature request: iOS and android app) https://github.com/openscad/openscad/issues/4248
derkork has joined #openscad
<derkork> Hey there, I was wondering if there is some agreed-upon way of documenting modules and functions in a way that tools can read the documentation (e.g. say what a module does and what the parameters do)? Something like documentation comments in other programming languages.
ur5us has joined #openscad
rvt_ has joined #openscad
<J2252> derkork never seen that
J2252 is now known as J22
<derkork> so if i would write a library for others to use, there is no standardized way to make the documentation.
<teepee> no, not yet
<gbruno> [github] t-paul pushed 41 modifications (Merge pull request #4247 from ntfshard/cppcheck-fixes Various fixes for source code.) https://github.com/openscad/openscad/commit/6eb6e59c7f6e70dde05970a5af90c5c88a41048d
<J22> so many libraries have no documentation at all
<teepee> I'd like to have something like the """ <text> """ with markup
<derkork> i noticed, i checked a few. some use doxygen, some have their complete own formats, some have no documentation at all
<teepee> similar to what python uses, but as there's no code yet, I'm open for other options :)
<teepee> the benefit of that integrated solution would be that we could use it in GUI too
<derkork> well not sure if it would be necessary to change the  _language_ specification for that, i guess just having a standardized way to put the comments would help...  e.g. using existing comments
<derkork> ```swift
<derkork> well not sure if it would be necessary to change the  _language_ specification for that, i guess just having a standardized way to put the comments would help...  e.g. using existing comments  like this:
<derkork>  * This does foo the boodibogofier.
<derkork>  * @param a [number] - bogofying rounds to run.
<derkork>  * @param b [vector3] - direction to foo into.
<derkork>  * @param c [bool] - whether to foo in the center.
<derkork>  */
<derkork> module foo(a,b,c) {
<derkork> }
<derkork> is there a code block?
<teepee> nope, best to use some paste service for multi line stuff
<teepee> paste?
<teepee> there's no way to standardize by asking people :)
<teepee> but then you can use whatever you want in that case
rvt_ has quit [Quit: rvt_]
<teepee> well, I guess we *could* parse even more comments, but I really don't like that
<derkork> well i am not pushing for a standard here. i just wanted to use an agreed upon convention if there is one.
<derkork> but seems there is none, so i guess i am free to use whatever i deem right.
<teepee> there's nobody who could push for some standard across libraries
<teepee> that would be the benefit of an integrated solution as it provides some addititional features giving some incentive to use that one
aiyion has quit [Remote host closed the connection]
aiyion has joined #openscad
<teepee> now I don't know the future, but I'm pretty sure if I'll post on the mailing list asking all library writers to go with a specific documentation version, I'll be ignored ;-)
<teepee> which is fine :)
<derkork> oh yes for sure.
<teepee> the library page has a list of libs that have good to awesome documentation, I've not really checked what everyone is using
<derkork> okay, so now i know, I'll put this on the shelf for now.
<derkork> it's all over the place, i checked a few of these.
<teepee> I'd say, start with what you like
<teepee> the most important part is the documentation content
<derkork> yep.
<teepee> everything else is more a specific formatting which is annoying to change, but not a big deal compared to having docs vs. not having any
<derkork> makes sense. thank you!
<teepee> and having docs is one of the 2 entry points to the official library list if you are writing a library :D
ur5us has quit [Ping timeout: 240 seconds]
<J22> still we could offer a suggestion in wiki for it or?
<J22> like "best practice"  use  doxygen  if you don't have your own style
<teepee> sure, some sort of guideline would be useful
<teepee> library-writers-guide :)
little_blossom_ has joined #openscad
little_blossom has quit [Ping timeout: 256 seconds]
nedko has quit [Remote host closed the connection]
nedko has joined #openscad
<J22> seems there is nothing on how to write a library https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Libraries
<teepee> yes, I think there's no good guides at this point, I suppose partially because the language is lacking any support
neur0 has joined #openscad
<derkork> wdym "lacking any support"?
<teepee> no namespaces, no package management
<teepee> I think that's the main points, library authors may have more topics even :)
<derkork> i see:D
TheCoffeMaker has quit [Ping timeout: 276 seconds]
Guest43 has joined #openscad
<J22> wasn't there a test for package management?
<teepee> yes, there's a couple of proposals
rvt_ has joined #openscad
TheCoffeMaker has joined #openscad
<gbruno> [github] mdarge opened issue #4249 (nothing provides 'libboost_filesystem.so.1.78.0()(64bit)') https://github.com/openscad/openscad/issues/4249
TheCoffeMaker has quit [Ping timeout: 250 seconds]
TheCoffeMaker has joined #openscad
rvt_ has quit [Quit: rvt_]
retrosenator has joined #openscad
rvt_ has joined #openscad
rvt_ has quit [Quit: rvt_]
arebil has quit [Read error: Connection reset by peer]
arebil_ has joined #openscad
rvt_ has joined #openscad
rvt_ has quit [Quit: rvt_]
derkork has quit [Ping timeout: 252 seconds]
rvt_ has joined #openscad
arebil_ has quit [Quit: My keyboard has gone to sleep. ZZZzzz…]
arebil has joined #openscad
arebil has quit [Client Quit]
teepee has quit [Remote host closed the connection]
rvt_ has quit [Quit: rvt_]
teepee has joined #openscad
<gbruno> [github] t-paul closed issue #4249 (nothing provides 'libboost_filesystem.so.1.78.0()(64bit)') https://github.com/openscad/openscad/issues/4249
<gbruno> [github] t-paul pushed 1 modifications (Merge pull request #4250 from ntfshard/tessellatePolygonWithHoles_fix tessellatePolygonWithHoles() return value fix) https://github.com/openscad/openscad/commit/7940100437bf3829e0be13d131c197558034652f
neur0 has quit [Remote host closed the connection]
neur0 has joined #openscad
<J22> finished the  new thin stepper visualizer with paint https://imgur.com/a/jXlotBN
rvt_ has joined #openscad
Guest43 has quit [Quit: Client closed]
J22 has quit [Quit: Client closed]
J22 has joined #openscad
SamantazFox has quit [Remote host closed the connection]
SamantazFox has joined #openscad
rvt_ has quit [Quit: rvt_]
rvt_ has joined #openscad
neur0 has quit [Remote host closed the connection]
neur0 has joined #openscad
retrosenator has quit [Quit: leaving]
rvt_ has quit [Quit: rvt_]
milza has joined #openscad
J22 has quit [Quit: Client closed]
J22 has joined #openscad
arebil has joined #openscad
milza has quit [Quit: milza]
rvt_ has joined #openscad
rvt_ has quit [Quit: rvt_]
rvt_ has joined #openscad
rvt_ has quit [Quit: rvt_]
<J22> how do i indent thinks proper if i am using functions within functions   like this? https://bpa.st/G6OQ
<J22> or like this https://bpa.st/RKDA
<InPhase> There are a couple of acceptable ways to do that. This is one: https://bpa.st/UU2A
<InPhase> Almost what you did, but you should have the indenting present for all parameters within a function.
<InPhase> Optionally you can also have the trailing parentheses line up for the close of each opening: https://bpa.st/AKAA There are times when this prevents confusion, it's just a little less vertically compact.
<J22> I see .. makes sense , ill try to get used to that
<J22> i think ill use the first one
<J22> ( i mean i am doing this for others - i am happy with one line Ü )
<InPhase> I am not always consistent myself between those styles, but tend to adapt based on the complexity of the thing in question. If it's more complicatedly nested, or something going to be shared and reused widely, being more disciplined about the closing brackets is more explicit and clear and reduces chances for mental parsing confusion.
<J22> hmm parenthesis () didn't   invoke folding
<J22> yeah i just switched to the later version as it is consistent with my [] and {} style
rvt_ has joined #openscad
<J22> but seems the lexer  is not designed to deal with  multi lined parenthesis
rvt_ has quit [Quit: rvt_]
<J22> math can be fun when it is working https://pasteboard.co/MM7MytmLkvGl.png
<J22> an official "bend" module  (so it is working on objects not just points) would be quite useful to create a lot of nice objects - and it is pretty simple.
ur5us has joined #openscad
la1yv_b has quit [Ping timeout: 256 seconds]
la1yv_b has joined #openscad
arebil has quit [Ping timeout: 248 seconds]
<joseph_> This might not be suitable for a feature request, but I wanted to mention a common mistake I accidentally cause as a user: putting a semicolon after `translate([x,y,z]);` This means my intended translation will not occur.
<joseph_> Obviously putting a semicolon right after the translate function is wrong, but I always miss it at first because there is no warning displayed during parsing. Would it be possible to add such a warning without breakage? Has this been brought up before?
castawayc has quit [Ping timeout: 276 seconds]
castaway has quit [Ping timeout: 246 seconds]
castaway has joined #openscad
castawayc has joined #openscad
<teepee> joseph_: yes, I think that should give a warning
<teepee> there's lots of discussion about warnings and quite a number have been added over the last couple of years
<teepee> not sure about this specifically, but there's some for the opposite case: cube() cube();
arebil has joined #openscad
* teepee wanders off to get some sleep...
<gbruno> [github] jbinvnt opened issue #4251 (Feature Request: Warning for semicolon after translate) https://github.com/openscad/openscad/issues/4251
<InPhase> Yeah, I think that should probably be a warning.
qeed has quit [Quit: qeed]
<InPhase> That then leads to the question, should this be a warning? module MyTranslate(x) { translate(x) children(); } MyTranslate([10, 0, 0]); { sphere(5); cube(4); }
<InPhase> We treat the children() as an empty geometry there. Should children() be a warning if there are no children?
<InPhase> This is trickier because there are probably people who got used to empty children() being ignored in existing code.
qeed has joined #openscad