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
<mmu_man> can't seem to get it to print from import_off
<mmu_man> ohhh… ok, it switches to the GUI console once it's available…
<mmu_man> facepalm
bozo16 has joined #openscad
kintel has joined #openscad
<kintel> mmu_man For debugging like that, running cmd-line only is often better
<mmu_man> well fprintf(stderr) worked fine, just converting some to PRINTD
<J24k96> did we know about exporting stl causing a crash? render seems fine
<J24k96> user using 2024.02.04
<kintel> J24k96 It's worth reporting; we try to fix crashes with high priority
<J24k96> https://www.printables.com/model/757297  is the model (quite some work)
<J24k96> i can't reproduce the crash but i am using 2024.01.03
teepee_ has joined #openscad
<kintel> For a huge design, ideally try to slim it down before reporting, as it can be quite some work to get to the meat
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
<J24k96> yeah as i said i can't replicate the problem at all so not sure what went wrong
<teepee> mmu_man: --debug takes a list of source code file names too
<teepee> e.g. --debug import_off,fontcache
<J24k96> kintel  it crashed with 2024.02.04
<J24k96> 3mf export working fine
<J24k96> well great and now it don't
<mmu_man> teepee: yeah I used all but the GUI was already setup and I expected it in the terminal…
<teepee> I've seen that, just an additional note as "all" can be annoying
<J24k96> i mean it don't crashes anymore .. probably some of these odd windows behavior issues again
<mmu_man> yeah it's verbose :)
<mmu_man> now what's the target for tests…
<mmu_man> ah ctest directly
<mmu_man> thought the scale was the cause for some failed tests but seems not
<mmu_man> probably some tests require CGAL and they won't work anyway
<mmu_man> ohhh yeah ok, KiCad's default unit for WRL export is meter, no wonder meshlab exported to OFF as minuscule stuff
<mmu_man> wrl seems to have a scale command to specify it… maybe I should add a wrl importer
J24k71 has joined #openscad
<mmu_man> bad header line 'OFF 14 24 0'
<mmu_man> hmm seems like the test files actually merged the first two lines?
J24k96 has quit [Ping timeout: 250 seconds]
<mmu_man> the spec is not really clear on that
<mmu_man> anyway, should sleep
omegatron has quit [Quit: Power is a curious thing. It can be contained, hidden, locked away, and yet it always breaks free.]
J24k71 has quit [Quit: Client closed]
<kintel> peeps[work] In case you're around: I see you did some work on projection a while back
<kintel> I'm trying to debug some Clipper issues, and I struggle to remember/understand how (no-cut) projection works
<kintel> Basically, it looks like we do this (example starting from a convex PolySet):
<kintel> 1. remove z coordinate and convert the PolySet to Polygon2d. We convert both front-and back-facing polygons.
<kintel> 2. Perform a Clipper union with fillrule Non-Zero
<kintel> However, my understanding is that when converting both front- and back-facing polygons, they will cancel each other out, resulting in just zero. Why does this work?
<peeps[zen]> i don't recall making changes to projection specifically. are you sure it wasn't superficial refactoring
<kintel> Just hoping you had some rare insight :)
LordOfBikes has quit [Ping timeout: 255 seconds]
mmu_man has quit [Ping timeout: 272 seconds]
<peeps[zen]> is there an archive of the online clipper docs? seems like clipper2 has replaced them
<peeps[zen]> / Add correctly winded polygons to the main clipper
<peeps[zen]> sumclipper.AddPaths(result, ClipperLib::ptSubject, true);
<peeps[zen]> idk, that code claims to correctly wind them, whatever that means
<peeps[zen]> i don't know the meaning of ptSubject and true args though
<kintel> Main issue is that Clipper2 seems to behave differently, so I'm trying to backtrack to understand what's actually supposed to happen
LordOfBikes has joined #openscad
<gbruno> [github] DraconPern opened issue #4981 (crash when trying to export stl) https://github.com/openscad/openscad/issues/4981
<kintel> Meh, partial docs : (
<peeps[zen]> yeah not sure how/where/if it corrects for front/back facing. looks like I basically only split a larger function into smaller ones with copy/paste, didn't really dig into the inner workings
<kintel> ah, nice. Yeah, that makes sense. Thx!
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snaked has quit [Quit: Leaving]
kintel has joined #openscad
snaked has joined #openscad
epony has quit [Remote host closed the connection]
arebil has joined #openscad
<gbruno> [github] kintel edited issue #4974 (Update to Clipper2) https://github.com/openscad/openscad/issues/4974
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
J24k has joined #openscad
L29Ah has quit [Ping timeout: 256 seconds]
L29Ah has joined #openscad
Bambukah has joined #openscad
<Bambukah> Good morning :)
<Bambukah> Just play with threads on BOSL2 and make a test... and it fails! Need to learn more thing about threading :)
Guest86 has joined #openscad
Guest86 has quit [Quit: Client closed]
mmu_man has joined #openscad
epony has joined #openscad
mmu_man has quit [Ping timeout: 252 seconds]
Bambukah has quit [Quit: Connection closed]
ToAruShiroiNeko has quit [Ping timeout: 260 seconds]
Guest97 has joined #openscad
To_Aru_Shiroi_Ne has joined #openscad
<Guest97> Haven't seen irc in 15 years..
<J24k> it has been there all the time
<Guest97> I'm using someone elses script to basically generate a border of a letter
<Guest97> difference(){
<Guest97>     linear_extrude(height=depth)
<Guest97>     minkowski(){
<Guest97>         text(letter,sized,style);
<Guest97>         circle(walls);
<Guest97>     }
<Guest97>     translate([0,0,base])
<Guest97>     linear_extrude(height=depth+2)
<Guest97>     text(letter,sized,style);
<Guest97> }
<Guest97> This basically cuts the inner(non circle) part of the shape and it works great, but now I'm trying to figure out how to cut the outside instead(I can't use a different size letter as it doesn't align up correctly, any hints?
<J24k> !paste
<J24k> paste!
<othx> paste is https://www.3dcustomizer.net/paste for .scad files, https://bpa.st for text, https://pasteboard.co/ or https://imgur.com/ for images
<J24k> use offset instead of minkowski
<J24k> Guest97 https://bpa.st/3A7A
<J24k> also have a look at these solutions https://github.com/openscad/scad-utils
<Guest97> Thats pretty close, but not quite what I'm trying to get to, I'm trying to have the inner text, then empty space, then an outer border, the one you sent me does the same as the original
<Guest97> That last link is great, but I still need to get the inner partt
<Guest97> Inset seems to be the right track, is there a way to create the solid object, and reuse it, once to create the outshell and then once to do the inset
<J24k> Guest97 https://bpa.st/HSVA
<Guest97> Thats the one, excellent
<J24k> the utils are quite old and still using minkowski - better use offset - it was just to show how to get a boarder
<J24k> offset can be used with negativ numbers to shrink
<J24k> Guest97 here another option https://bpa.st/5ZVQ
<Guest97> I can make that first one you sent work, thank you
<J24k> you can also use fill() https://bpa.st/IJ5Q  but that need version 2024
<Guest97> That other one you sent is working great, thanks again
Guest97 has quit [Quit: Client closed]
epony has quit [Ping timeout: 264 seconds]
snaked has quit [Quit: Leaving]
Ckat has joined #openscad
epony has joined #openscad
epony has quit [Remote host closed the connection]
To_Aru_Shiroi_Ne has quit [Ping timeout: 268 seconds]
epony has joined #openscad
fling has quit [Remote host closed the connection]
fling has joined #openscad
ToAruShiroiNeko has joined #openscad
LordOfBikes has quit [Ping timeout: 256 seconds]
teepee_ has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
LordOfBikes has joined #openscad
epony has quit [Remote host closed the connection]
epony has joined #openscad
<gbruno> [github] MethylBromide opened issue #4982 (Double variable assignment warning not displayed in some cases it should be) https://github.com/openscad/openscad/issues/4982
bozo16 has quit [Ping timeout: 260 seconds]
<gbruno> [github] jordanbrown0 synchronize pull request #4946 (Make customizer font and size selectable.) https://github.com/openscad/openscad/pull/4946
mmu_man has joined #openscad
erectus has quit [Quit: erectus]
erectus has joined #openscad
erectus has quit [Client Quit]
erectus has joined #openscad
<JordanBrown1> peeps[zen] for an older version of documentation archive.org may be your friend.
kintel has joined #openscad
<kintel> peeps[work] Thanks again, I think it turned out to be a bug in Clipper: https://github.com/AngusJohnson/Clipper2/issues/777
arebil has quit [Quit: arebil]
<mmu_man> 100% tests passed, 0 tests failed out of 18
<mmu_man> yay
<mmu_man> just because the tests were putting the numbers on the same line as the OFF magic
<mmu_man> [Ndim]# Space dimension of vertices, present only if nOFF
<mmu_man> WTF… oh, so it's *litteral* n in nOFF?
<mmu_man> weird
<gbruno> [github] kintel closed pull request #4966 (Move VBO rendering out of experimental) https://github.com/openscad/openscad/pull/4966
<gbruno> [github] kintel pushed 6 modifications (Move VBO rendering out of experimental (#4966)) https://github.com/openscad/openscad/commit/39090e2a719f8e33560387468b86221f3952f5df
<gbruno> [github] kintel closed issue #4782 (Move VBO support out of experimental) https://github.com/openscad/openscad/issues/4782
<gbruno> [github] kintel edited issue #4782 (Move VBO support out of experimental) https://github.com/openscad/openscad/issues/4782
<kintel> mmu_man Not sure if we really need to support all the less common variants though
<kintel> I think it's OFF for 3D, 4OFF for 4D, and nOFF [nDim] for nD
<kintel> ..but I've personally only seen the first variant
<teepee> 2OFF ?
<kintel> Also, I think OFF was initially added to OpenSCAD _only_ because CGAL had built-in support for it
<mmu_man> I didn't notice the n wasn't italic, so I thougt it was an actual number :D
<mmu_man> Well, I'd rather parse it correctly so at least we say why we can't import it
<kintel> Yeah, that's always good. ..just makes testing more interesting :)
<kintel> teepee: With file formats like OFF, there's always the risk that someone invents their own variant : /
<teepee> yeah, even with a dedicated spec this happens but for the older formats it's even worse
<mmu_man> can't be worse than CSV, can it?
<teepee> oh, yes, all the chunk based formats, TIFF, PNG
<peeps[zen]> STL is the worst format
<gbruno> [github] kintel pushed 6 modifications (Make customizer font and size selectable. (#4946)) https://github.com/openscad/openscad/commit/dd2da9e2908e881af6cb1fe90306fe6004081cb6
<gbruno> [github] kintel closed pull request #4946 (Make customizer font and size selectable.) https://github.com/openscad/openscad/pull/4946
<teepee> or worst case the windows office formats
<teepee> STL is worst getting content out as it is meant to be
<teepee> the number of format/structure differences is relatively limited
<teepee> but even things like line-ending, number-format can be fun
<teepee> lib3mf-v2 just recently fixed the locale dependent bug :)
<kintel> heh, yeah, emitting numbers with a literal ',' as a decimal separator is my favourite
<teepee> yup, and for some reason it's one of the most difficult topics to NOT do that in C++
<teepee> or to be precise, there's only "easy" solutions that are just aweful, like global set_locale()
<InPhase> kintel: I really wish we could just standardize that one... It's too important to be left to locale.
<InPhase> Gigantic scale errors are on the table there.
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<petaflot> :'( I have this part that shows fine with F5, but with F6 most of the geometry disappears: https://bpa.st/MTXQ can anyone help?
<J24k> petaflot  maybe you have no overlap - use the modifiier # * ! to show or mark objects
<J24k> petaflot get an error that you mix 2D and 3D
<petaflot> J24k: what do you mean by no overlap? there are some cylinders that are half inside the cubic base, they should definitely show. and as I mentionned, preview is fine but render is not
<petaflot> the only thing 2D is text that went through linear_extrude
<petaflot> got any doc for the # * ! modifier(s)? I've never used them before
<J24k> I can see there are regions where is no overlap between discs
<J24k> cheatsheet!
<othx> cheatsheet is https://www.openscad.org/cheatsheet/ for the release version and https://www.openscad.org/cheatsheet/snapshot.html for the development snapshot versions
<J24k> You have text that is not extruded like  "SAE"
<petaflot> can you give me the reference of the disc that may cause problems with the overlap? ie. M12x1.5
<J24k> or "Metrique Gros"
<J24k> so removing those text i get a render
<petaflot> yeah that was was it.. I had forgottent the extrusion there. thanks a lot
<J24k> between some discs there is only a very thin wall or none maybe make thicker walls or overlap for no walls
<J24k> And i would use cylinder();  and not this strange library
<petaflot> J24k: I love my library
<petaflot> the only place I use cylinder is when I need to draw cones
<petaflot> wall thickeness are exactly as intended (I use a pythong script to generate the scad file)
<petaflot> the thing I like most about my "prism()" primitive is that centering (or not) objects like cubes is way easier
<J24k> cylinder (h=5,d=20) giving you a normal cylinder  .. the problem is that your formatting is not ideal and your library is  .. lets say if you want support you make it very difficult besides using French
<petaflot> .. on whatever axis you want. by default it acts like the cylinder, centered on X and Y
mmu_man has quit [Ping timeout: 268 seconds]
<petaflot> I've been using openscad for 10+ years... pretty much the first time I need support (and the first time I use text in a design)
<J24k> You can absolutely do your own things - it is just super difficult for others to understand your code.
<petaflot> fair enough
<J24k> In general it helps to make a small simple version so it is easier to find the issue
mmu_man has joined #openscad
mmu_man has quit [Ping timeout: 264 seconds]
mmu_man has joined #openscad
dostoyevsky2 has quit [Quit: leaving]
dostoyevsky2 has joined #openscad
<mmu_man> Ok I think I got it right this time
dostoyevsky2 has quit [Quit: leaving]
dostoyevsky2 has joined #openscad
<gbruno> [github] mmuman synchronize pull request #4960 (Fix OFF import) https://github.com/openscad/openscad/pull/4960
<mmu_man> This should pass all the tests
<teepee> mmu_man: did you rebase to or sync with latest master?
<teepee> I think you branched of when there was some build issue
<teepee> ah, I see force-poshed, cool, crossing fingers :)
<mmu_man> yes
<teepee> it might be useful to make the error string passed to AsciiError unique
<mmu_man> you mean the dups? compiler should be able to optimize that away
<teepee> I mean have different text so it's easier to reference which exact instance did produce the error, I'm not sure the other information always is enough to determine that
<teepee> like a user reports "bad header"
<mmu_man> hmm there's lineno but I'm not sure I increment it correctly
<mmu_man> oh yeah I missed that
<mmu_man> added some more info in there
<gbruno> [github] mmuman synchronize pull request #4960 (Fix OFF import) https://github.com/openscad/openscad/pull/4960
Alexer has quit [Ping timeout: 264 seconds]
<mmu_man> can't find a single binary sample
<teepee> well, maybe we just ignore those till someone actually has one :)
<teepee> seems to have worked for CGAL for years too
<teepee> the dimension assignment should maybe ensure there actually a number?
<mmu_man> oh yeah missing try catch
<mmu_man> not used to boost
<gbruno> [github] mmuman synchronize pull request #4960 (Fix OFF import) https://github.com/openscad/openscad/pull/4960
<gbruno> [github] mmuman synchronize pull request #4960 (Fix OFF import) https://github.com/openscad/openscad/pull/4960
<mmu_man> rebased again
<mmu_man> ok at least I found some files with comments in the header…
<teepee> ah, cool. otherwise I'd say we give it a chance to go green and see if anyone on Mastodon wants to have a go at testing once merged