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
Trieste has quit [Ping timeout: 260 seconds]
Trieste has joined #openscad
Trieste has quit [Ping timeout: 256 seconds]
epony has quit [Ping timeout: 268 seconds]
Trieste has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
califax has quit [Ping timeout: 255 seconds]
califax has joined #openscad
teepee has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
<linext> is there a guide for using inkscape/openscad to make a good lithophane from a photo/painting?
<linext> i believe it needs to use grayscale and a small number of different shades of gray
epony has joined #openscad
Trieste has quit [Ping timeout: 268 seconds]
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
Trieste has joined #openscad
<linext> does openscad have something like textmetrics() for images?
<linext> so i could get the width and height in pixels?
Sauvin has quit [Ping timeout: 264 seconds]
Sauvin has joined #openscad
Trieste has quit [Ping timeout: 256 seconds]
Junxter has joined #openscad
Trieste has joined #openscad
aiyion has quit [Ping timeout: 255 seconds]
TheAssassin has quit [Ping timeout: 255 seconds]
teepee has quit [Ping timeout: 255 seconds]
Trieste has quit [Ping timeout: 256 seconds]
Trieste has joined #openscad
TheAssassin has joined #openscad
teepee has joined #openscad
aiyion has joined #openscad
Trieste has quit [Ping timeout: 256 seconds]
Trieste has joined #openscad
Trieste has quit [Ping timeout: 268 seconds]
J227886 has joined #openscad
<gbruno> [github] fleiner opened pull request #4445 (Allow touch-pad friendly 3D navigation) https://github.com/openscad/openscad/pull/4445
J2278 has quit [Ping timeout: 260 seconds]
Trieste has joined #openscad
<RyotaroOda> teepee: super thanks!
Trieste has quit [Ping timeout: 260 seconds]
Trieste has joined #openscad
Trieste has quit [Ping timeout: 268 seconds]
Trieste has joined #openscad
Trieste has quit [Ping timeout: 268 seconds]
Trieste has joined #openscad
Trieste has quit [Ping timeout: 260 seconds]
teepee has quit [Quit: bye...]
teepee has joined #openscad
Trieste has joined #openscad
Trieste has quit [Ping timeout: 246 seconds]
Trieste has joined #openscad
aiyion has quit [Ping timeout: 255 seconds]
califax has quit [Ping timeout: 255 seconds]
califax has joined #openscad
aiyion has joined #openscad
Trieste has quit [Ping timeout: 256 seconds]
foul_owl has quit [Read error: Connection reset by peer]
Trieste has joined #openscad
Trieste has quit [Ping timeout: 268 seconds]
foul_owl has joined #openscad
foul_owl has quit [Ping timeout: 256 seconds]
Guest43 has joined #openscad
foul_owl has joined #openscad
califax has quit [Ping timeout: 255 seconds]
califax has joined #openscad
Guest43 has quit [Quit: Client closed]
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
aiyion has quit [Remote host closed the connection]
aiyion has joined #openscad
ur5us has joined #openscad
ur5us has quit [Quit: Leaving]
aiyion has quit [Remote host closed the connection]
aiyion has joined #openscad
<gbruno> [github] kwikius synchronize pull request #4367 (ModuleLiterals: making openSCAD modules first class.) https://github.com/openscad/openscad/pull/4367
aiyion has quit [Ping timeout: 255 seconds]
aiyion has joined #openscad
castaway has joined #openscad
RyotaroOda has quit [Quit: Client closed]
use-value has quit [Remote host closed the connection]
use-value has joined #openscad
<pbsds> Is there a way to make open faces?, I.e. non water tight shapes?
<teepee> officially no
foul_owl has quit [Ping timeout: 252 seconds]
foul_owl has joined #openscad
use-value has quit [Remote host closed the connection]
use-value has joined #openscad
TheAssassin has quit [Ping timeout: 255 seconds]
TheAssassin has joined #openscad
<J227886> IceSL  a lua based modeler and slicer  https://icesl.loria.fr/   from a first look  maybe some scad scripts could be converted
* teepee will continue to boycot that thing ;-)
<J227886> because french?
<teepee> no, because in my totally not lawyer view they violated openscad license at some point
<teepee> also I don't like how they put all that grant money into closed source software, but I'm still not sure if it's public money or some private stuff
<teepee> if it's public money, my view would be that the result has to be open source
<teepee> but it's not 100% clear from the info I found where the money is coming from
<J227886> openscad ?  did they use that? .. i already wondered about their bit strange license
<teepee> they had a plugin converting openscad code
<teepee> based on hacked openscad source
<J227886> ah they already done that ..    seemed they working on nonplanar printing which could be nice
<teepee> I don't think that's available anywhere still, but I've not spend much time searching
<teepee> IIRC they also mostly moved to a web based version or at least pushing that more
<J227886> also the polyfoam caught my eye .. but probably not to suited for fdm
<J227886> the slicer and webprinter seems to be browser but can't find something for the script part
<J227886> the webprinter could be nice to test gcode https://icesl.loria.fr/webprinter/
<teepee> probably, but I doubt I will ever accept that license
<teepee> it's not even clear how "private" or "personal" use is covered
<J227886> in the browser the license text states free use for non- commercial and private..    so well the webprinter is not that fancy as i thought
J227886 is now known as J22
<J22> did GSoC gave scad a  new shader, or how does that work?
use-value has quit [Remote host closed the connection]
use-value has joined #openscad
<pa> so now something new.. first time a (piece of) model renders with preview but doesn't render with render..
<teepee> J22: it's not merged yet
<teepee> but it adds a menu entry for selecting shaders
<J22> so  some x-mas present or  is there any date i can look forward to?
<pa> wait i know what might be going on
<J22> pa i have that all the time cuz my preview settings differ from render
<pa> J22: ah.. well i don't, and before i only had the other way around
<pa> usually cgal chewed stuff the preview didnt
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
<pa> probably some geometry mistake: CGAL ERROR: precondition violation! Expr: ! _is_valid (_succ2_P) || comp_f (node1_P->object, _succ2_P->object) != LARGER
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
<pa> or even other errors.. :think
<tcurdt> is there a way to error out in a function?
<tcurdt> in the sense of 'panic("this should have not happened")'
califax has quit [Ping timeout: 255 seconds]
TheAssassin has quit [Ping timeout: 255 seconds]
aiyion has quit [Ping timeout: 255 seconds]
<J22> tcurdt   assert ?
<tcurdt> if that possible to use in functions (no modules) - that would work totally work for me.
<tcurdt> just not sure how that syntax would look like
<J22> yes .. you also could probably build something with echo if you don't want it to stop
<tcurdt> return an assert?
<tcurdt> seems like that's ok
<J22> f(x)=assert(x>5,"x too small") 5*x;
<tcurdt> ah ... indeed missed the last example
<tcurdt> assert(false, "error") works
<tcurdt> a bit ugly but ok
<J22> if you don't use a condition but only false it will never work
TheAssassin has joined #openscad
califax has joined #openscad
<tcurdt> J22 it's for a fall through case .... hence the wondering for a "panic" equivallent
<J22> not sure how you use this ↦  function Tan(x)=assert(x!=90)tan(x); // this would stop in case of a value of wrong size
<J22> but as long it is working for you ..
<J22> i assume you put the assert itself in to a conditional  fork
<tcurdt> function conv(name) = (name == "foo") ? 1 : assert(false, "not foo");
<tcurdt> just a simplified example
aiyion has joined #openscad
_xxoxx has joined #openscad
Junxter has quit [Ping timeout: 268 seconds]
aiyion has quit [Remote host closed the connection]
<J22> tcurdt     function conv(name)=assert(name!="foo")1;
<tcurdt> J22 yeah, it was a simplified example
<tcurdt> that wouldn't fly in the real case
<tcurdt> the real function has multiple cases
<tcurdt> more a switch/case style
<tcurdt> and the assert/panic on the default/non-match
<J22> the point is that assert checks for a condition - so there is no need to put it into one
aiyion has joined #openscad
<tcurdt> I know ... but that would not really work well in switch/case scenario
<J22> so at the beginning you check for the range/values
<tcurdt> that's against DRY
<tcurdt> but don't worry - I am all good like it is now :)
<J22> Ü
<tcurdt> what does that mean? :)
<J22> how does it look like?  -- maybe tilt your head Ü :)
<tcurdt> when I try to forget my german - it kind of also looks like a smiley :)
aiyion has quit [Ping timeout: 255 seconds]
<J22> see  so easy
<J22> a language with emoticons
<tcurdt> never seen it used like that :)
aiyion has joined #openscad
<J22> however if you made a conditional that stops from a certain input - you can save it and just use the assert
Non-ICE has joined #openscad
<J22> no need to repeat anything
<tcurdt> that wouldn't work on a fall through
<J22> i am sure you can't give an example where this wouldn't work
<tcurdt> then I am sure you we misunderstand each other
<tcurdt> function conv(name)=assert(name=="a" || name=="b" || name=="c") (name == "a") ? 1 : (name == "b") ? 2 : (name == "c") ? 3 ... you get the idea
_xxoxx has quit [Ping timeout: 268 seconds]
<J22> isn't search simpler for this?
<tcurdt> I am not following
aiyion has quit [Ping timeout: 255 seconds]
aiyion has joined #openscad
<J22> you are right that with  strings  this need to define a lot -  i am using assert only for numbers  to stop if  e.g  od < id
<J22> but  if you have a list of  switch cases it is simpler to use an array to define them and use https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#search
<tcurdt> I still would have to catch the non-match case (being an empty array) ... doesn't really feel simpler TBH
<tcurdt> at least not in this case
califax has quit [Ping timeout: 255 seconds]
califax has joined #openscad
TheAssassin has quit [Ping timeout: 255 seconds]
Trieste has joined #openscad
TheAssassin has joined #openscad
<J22> is_list()
<J22> or just use the customizer if you say you only have 3 valid inputs
<tcurdt> nah - not an option
<J22> i am always amazed what strange scenarios people come up with.
<tcurdt> how is it a strange scenario to map a name to a number? :)
<tcurdt> if this is used as part of an API the customizer just isn't right tool for the job
<linext> i made a pull request
<linext> first time i did for openscad
<gbruno> [github] hackwin opened pull request #4446 (Added linear_extrude(1) to render 3D shape instead of 2D shape) https://github.com/openscad/openscad/pull/4446
<linext> if someone was using command-line openscad and ran the example scad files, it would not generate a 3d model
<J22> if you want  3D just extrude the 2D tree
<J22> you just added more complexity
<J22> linext  you know that 2D is exported as svg  and  a  lot people use scad not just for 3d
snaked has quit [Ping timeout: 268 seconds]
teepee has quit [Ping timeout: 255 seconds]
teepee has joined #openscad
<teepee> linext: I'm not sure we want to force everything as 3D
<teepee> as J22 already mentioned 2D is very much valid as DXF / PDF or SVG output
<J22> maybe we could put "2D examples" and "3D" so people know what to expect
<J22> i imagine if someone tries the examples and wonders why export as stl is not possible  -  if echo is off command line wouldn't display teh ERROR: Current top level object is not a 3D object.
<J22> on the other hand some one  using that and switching off the echo - would know what he is doing
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openscad
califax has quit [Ping timeout: 255 seconds]
teepee has quit [Ping timeout: 255 seconds]
califax has joined #openscad
GNUmoon has quit [Ping timeout: 255 seconds]
teepee has joined #openscad
aiyion has quit [Ping timeout: 255 seconds]
aiyion has joined #openscad
GNUmoon has joined #openscad
TheAssassin has quit [Ping timeout: 255 seconds]
TheAssassin has joined #openscad
qeed has joined #openscad
ur5us has joined #openscad
RyotaroOda has joined #openscad
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openscad
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #openscad
ur5us has quit [Ping timeout: 260 seconds]
milza has joined #openscad
califax has quit [Remote host closed the connection]
TheAssassin has quit [Remote host closed the connection]
califax has joined #openscad
TheAssassin has joined #openscad
snaked has joined #openscad
GNUmoon has quit [Ping timeout: 255 seconds]
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
GNUmoon has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
Teslamax has joined #openscad
ur5us has joined #openscad
ccox has quit [Read error: Connection reset by peer]
ccox has joined #openscad
Teslamax has quit [Quit: Textual IRC Client: www.textualapp.com]
<gbruno> [github] maave0 opened issue #4447 (JSON file changes order - messes with git history) https://github.com/openscad/openscad/issues/4447
Sauvin has quit [Remote host closed the connection]
Sauvin has joined #openscad
aiyion has quit [Ping timeout: 255 seconds]
aiyion has joined #openscad
TheAssass1n has joined #openscad
GNUmoon has quit [Ping timeout: 255 seconds]
TheAssassin has quit [Ping timeout: 255 seconds]
TheAssass1n has quit [Remote host closed the connection]
TheAssassin has joined #openscad
GNUmoon has joined #openscad
<linext> hmm, i think openscad users expect to get an STL file unless it's stated otherwise in the comments
<teepee> I've certainly seen people using SVG export
<teepee> it might make sense to highlight the difference a bit more
<linext> i mean, circle() produces 1mm shape
<linext> height is automatically 1mmm
<teepee> no, it does not, it has a slightly strange preview which even has an issue open to fix it
<linext> ah
<linext> well, i had to go through all the examples and make sure they work with web assembly
<linext> the ones that didn't work immediately were 2d that needed to be 3d
<linext> only 2 didn't work at all out of about 50
<linext> 4 needed linear_extrude(1)
teepee has quit [Ping timeout: 255 seconds]
teepee has joined #openscad
<teepee> linext: did you try SVG export? that would be a great additional feature
aiyion has quit [Remote host closed the connection]
aiyion has joined #openscad
ur5us has quit [Ping timeout: 256 seconds]