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 or report bugs: https://goo.gl/lj0JRI | Tutorial: https://bit.ly/37P6z0B | Books: https://bit.ly/3xlLcQq | FOSDEM 2020: https://bit.ly/35xZGy6 | Logs: https://libera.irclog.whitequark.org/openscad | don't ask to ask
<InPhase> JakeSays: We already have that with lexical scope from the top level of used files. Also, every function can have private values.
<InPhase> JakeSays: And well, all lexical module variables as well.
<InPhase> Those are private except to submodules and subfunctions.
<JakeSays> InPhase: not sure what you mean by top level of used files
<InPhase> Things not in a module or function.
<InPhase> In functions included with "use"
<JakeSays> InPhase: right i got that part. it's the use that confused me
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
<JakeSays> hmm. i seem to recall issues with something like this: foo.scad: i=10; module foo() { sphere(i); }, main.scad: use <foo.scad>; foo();
<JakeSays> i vaguely recall something about i not being defined
<InPhase> Works fine.
<JakeSays> hmm. wonder that it was then. lol i probably spelled i wrong
<JakeSays> that's probably what it was. i have a nasty bug in my keyboard that will randomly drop one half of a keystroke
<Jack21> its when you try to use i in main and call  foo(i) in main that will fail
<InPhase> Yeah, that would fail by design.
snaked has quit [Remote host closed the connection]
<JakeSays> ah. that's what it was. i wanted to use constants from a use<>'d file
snaked has joined #openscad
<JakeSays> i have to expose them as functions instead
nspuma has quit []
LordOfBikes has quit [Ping timeout: 264 seconds]
ferdna has joined #openscad
LordOfBikes has joined #openscad
lagash has quit [Killed (calcium.libera.chat (Nickname regained by services))]
lagash_ has joined #openscad
lagash_ has quit [Quit: ZNC - https://znc.in]
Jack21 has quit [Ping timeout: 256 seconds]
lagash has joined #openscad
snaked has quit [Remote host closed the connection]
snaked has joined #openscad
submariner has quit [Remote host closed the connection]
Junxter has joined #openscad
ferdna has quit [Quit: Leaving]
arebil has joined #openscad
arebil has quit [Quit: My keyboard has gone to sleep. ZZZzzz…]
Jack21 has joined #openscad
arebil has joined #openscad
lastrodamo has joined #openscad
<gbruno> [github] rewolff opened issue #3982 (Suggestion: F7 does "preferred export". ). https://github.com/openscad/openscad/issues/3982
arebil has quit [Quit: My keyboard has gone to sleep. ZZZzzz…]
russnelson has quit [Remote host closed the connection]
russnelson has joined #openscad
af has quit [Ping timeout: 268 seconds]
af has joined #openscad
nelson_ has joined #openscad
russnelson has quit [Read error: Connection reset by peer]
gyha has joined #openscad
<gyha> hello guys. i'm running into a problem when extruding a imported 2d vector file (.DXF): i'm able to perform boolean functions on it and i linear_extrude() it and it renders fine. but as soon as i only do as much as add another unrelated shape (e.g. a sphere) somewhere else: then preview still works ok, but render fails... :/
<gyha> ERROR: The given mesh is not closed! Unable to convert to CGAL_Nef_Polyhedron.
<gyha> when i import a .DXF with way easier geometry it works fine though. is there any way to validate the vector file before use in openscad?
<Jack21> sometimes it helps to render() in between - or use thrown together view ( https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Primitive_Solids#Mis-ordered_faces )
<gyha> thanks i'll try that. regarding the thrown-together view: how do i just "compile"?
<Jack21> if your polygon is self intersecting you get problems if that 3D object should have additional operations - you can also check the rendered version with a program like meshmixer  or  some meshlab
<Jack21> just F5 preview  (without having show edges on)
fling is now known as ciphersalad
<Jack21> http://acgessler.github.io/open3mod/   this is a lightweight  software do check models if you haven't any
<gyha> it's a 2d graphic though
<gyha> it's done using inkscape and i'm currently looking into ways to find (and fix) self intersections
<Jack21> you said you can extrude this - so render and save this to see what went wrong
<Jack21> i just had a case where the outside looked nice but inside was intersecting structures causing problems
Holger has joined #openscad
Holger has quit [Client Quit]
Holger22 has joined #openscad
<Holger22> Moin
<Holger22> I have the problem that sometime the preview does not work. Render shows the expected results, but preview is somehow zomm factor related wrong.
<Holger22> Any hints? (latest openscad, windows, latest graphics drivers, at least what I new).
<Jack21> use "view all"   i am not sure i understand your problem
<Jack21> in the status bar you see  the view rotation translation distance and field of view  ( $vpt $vpr $vpd and $vpf )  also maybe switch orthogonal view or perspective
<Holger22> https://ibb.co/TvXvnGN is an example. If I zoom out it suddenly is ok (but very small, so I would like to zoom more into it)
<teepee> Is there a difference of a huge object somewhere?
<teepee> preview in perspective mode has problems if the camera is inside such objects even if they don
<Jack21> maybe try  that cube symbol (orthografic view)
<teepee> 't show themself due to difference
<Holger22> teepee YES! I use some huge blocker cubes to only see/work/print the part I need.
ciphersalad is now known as fling
<Jack21> using   view=1 ;  and if(view==1)cube();  etc .. may help to organize
<teepee> gyha: depending on the 2d shape adding a tiny offset can help cleaning up selfintersections: offset(0.001) import("file.svg");
<teepee> Holger22: if it's not possible to give a smaller estimation for that cube, maybe intersection could help as this covers the part to actually show
<teepee> or as Jack21 said, use some condition to switch. a slightly more elaborate version: https://pastebin.com/gFzrBC34
<Holger22> teepee how to use intersection? My "build code" is only "difference() { M11G95ME(); translate([40,40,0]) blocker(20,20); } "
<Jack21> teepee is it possible that "view edges" in thrown together  view is not working and also can't get anything with F11
<Holger22> if i put a intersection around that it does not help
<teepee> it would need a cube to intersect with the part you want to see instead of the part to hide
<teepee> I think for disabling whole modules the suggestion from Jack21 with using a conditional is much clearer
<Jack21> ( you can't limit the difference module with an intersection)
<Holger22> i need to understand intersection.... wait a minute, please
<Holger22> yeah, thanks, not that stupid. :-)
<Jack21> if using "true" and "false" you can use the customizer with checkboxes
<teepee> that works with numbers too :)
<Jack21> you can have a checkbox with numbers?
<teepee> show_part = 1; // [1:TOP, 2:BOTTOM]
<teepee> or just using the strings
<Holger22> teepee THANKS for the intersection. I totally missed that and it does exactly what I want. I can get rid of all the blocking code... now i'm a little less stupid.
<teepee> customizer version: https://pastebin.com/H0HANj11
<Jack21> teepee:  F11 is not working any idea why (also in other versions)
<teepee> no idea, maybe that combination was never implemented
<teepee> or maybe not easily possible as it just dumps everything on screen as the name implies
<Holger22> btw: I tried OpenSCAD-2021.10.19 and reverted back to OpenSCAD-2021.01 because .19 had a "chewy" usage feeling
<teepee> in what sense?
<teepee> note that is has some extra feature that could be enabled via Preferences->Features
<Holger22> just the feeling when switching windows or starting the program.
<teepee> hmm, that's odd, there's not much changes in that regard
<Holger22> .01 is instantly there, .19 takes "some time" to start or switch task (bring it back from background).
<teepee> I guess I need to get that build issue fixed, so we can get the latest builds for Windows
<Holger22> it is not huge, just chewy
qeed_ has joined #openscad
<Jack21> teepee : working for others but i never got this https://www.openscad.info/index.php/2020/05/27/render-panel-window/
<gyha> regarding the thrown-together view in combination with my .DXF: i see specks of pink all around the lower edge of my extruded graphic. when i zoom in they move around. i wonder if that's just a displaying issue or if there's actually something wrong with my model...?
<Jack21> gyha  there is no pink in your image
<Jack21> however maybe there are two objects on the same space and one has inverted face normals (pink) and you see Z- Fighting
qeed has quit [Ping timeout: 264 seconds]
<Jack21> teepee  that F11 issue had to do with the color scheme  after i switched back and forth it is now working  ( and it think i lost my colors i was familiar with)
<teepee> oh, hmm
gyha has quit [Ping timeout: 256 seconds]
<Jack21> and not working .. that is crazy   (but think i found my colors again)
<Jack21> and working again ..  wtf
Holger22 has quit [Quit: Client closed]
arebil has joined #openscad
<Jack21> Ok  it seems you need to have 2 Objects rendered to get wireframe view ..  a new window with one object doesn't  until i add a second object - then i can remove one and still working
<Jack21> no  you definately need 2 objects rendered
Holger22 has joined #openscad
<Holger22> Oh, and might I suggest a editor feature (stolen from notepad++): when selecting a word, highlight all the same words with a slightly different color, too.
<Jack21> if you  "find" selected - it is doing that
<Jack21> select one and hit ctrl+f
<Holger22> I know. but the automatic is way more convienient.
<Jack21> i am not sure i would like that  - if you select a number or "union()"  you get a Chrismas tree
<Jack21> but Holger22:  you know you can use an external editor and only open the main window of oscad and it will refresh when the document changed
<Alicia> you will just need to enable Design->Automatic Reload and Preview for that
ferdna has joined #openscad
Colt has quit [Quit: Leaving]
<Holger22> its the way most editors handle the highlighting nowadays. VS, VSC, notepad++. So "user expectation" might be on an automatic mode. just saying.
<Jack21> alicia  just was looking for it in settings and failed - Ü  thx
nelson_ has quit [Remote host closed the connection]
nelson_ has joined #openscad
<Jack21> iirc oscad is scintilla based
Holger22 has quit [Quit: Client closed]
<teepee> yes, specifically qscintilla
arebil has quit [Quit: My keyboard has gone to sleep. ZZZzzz…]
raboof has quit [Ping timeout: 250 seconds]
josephl has quit [Ping timeout: 250 seconds]
arebil has joined #openscad
arebil has quit [Client Quit]
snaked has quit [Ping timeout: 268 seconds]
ferdna has quit [Quit: Leaving]
raboof has joined #openscad
josephl has joined #openscad
Junxter has quit [Ping timeout: 256 seconds]
ferdna has joined #openscad
<gbruno> [github] ilya-pro opened issue #3983 (Error with Command Line .png export in a Docker container). https://github.com/openscad/openscad/issues/3983
<gbruno> [github] UBaer21 opened issue #3984 (Wireframe view F11 needs two objects). https://github.com/openscad/openscad/issues/3984
<gbruno> [github] UBaer21 edited issue #3984 (Wireframe view F11 needs two objects). https://github.com/openscad/openscad/issues/3984
Colt has joined #openscad
<JakeSays> i have no sense of proportion. i built a light fixture that has 20 leds in it. the walls are 6mm thick. i'm pretty sure i could drive my truck over this thing and it wouldn't break