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
snaked has joined #openscad
mmu_man has joined #openscad
epony has quit [Remote host closed the connection]
aiyion2 has quit [Ping timeout: 240 seconds]
epony has joined #openscad
aiyion2 has joined #openscad
califax has quit [Remote host closed the connection]
epony has quit [Remote host closed the connection]
epony has joined #openscad
califax has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
J24k37 has quit [Quit: Client closed]
J24k37 has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
kintel has joined #openscad
fling has quit [Remote host closed the connection]
fling has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
J24k8 has joined #openscad
J24k37 has quit [Ping timeout: 250 seconds]
LordOfBikes has quit [Ping timeout: 256 seconds]
fling has quit [Remote host closed the connection]
fling has joined #openscad
LordOfBikes has joined #openscad
<gbruno> [github] kintel pushed 1 modifications (Build PolySet for cylinder manually to avoid paying for PolySetBuilder's reindexer) https://github.com/openscad/openscad/commit/88b29ac959c50a8a7a59ff42033101c8b42eb726
<gbruno> [github] kintel opened pull request #4937 (Optimize some PolySet creations to avoid using the PolySetBuilder reindexer) https://github.com/openscad/openscad/pull/4937
<gbruno> [github] kintel edited pull request #4933 (PolySet Refactor: Remove Polygon2d features from PolySet) https://github.com/openscad/openscad/pull/4933
<gbruno> [github] kintel edited issue #4851 (PolySet needs cleanup) https://github.com/openscad/openscad/issues/4851
snaked has quit [Remote host closed the connection]
snaked has joined #openscad
foul_owl has quit [Ping timeout: 252 seconds]
mmu_man has quit [Ping timeout: 260 seconds]
aiyion2 has quit [Remote host closed the connection]
aiyion2 has joined #openscad
foul_owl has joined #openscad
epony has quit [Remote host closed the connection]
epony has joined #openscad
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
erectus has quit [Remote host closed the connection]
erectus has joined #openscad
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
erectus has quit [Remote host closed the connection]
erectus has joined #openscad
fling has quit [Ping timeout: 240 seconds]
aiyion2 has quit [Remote host closed the connection]
aiyion2 has joined #openscad
fling has joined #openscad
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fling has quit [Remote host closed the connection]
fling has joined #openscad
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
arebil has quit [Ping timeout: 255 seconds]
arebil has joined #openscad
|{ame has joined #openscad
<|{ame> Hello I have file a.scad that defines a $a, and a module m that uses $a;
<|{ame> file b.scad does use <a.scad> and calls f(), but $a is not found. what should I do?
<J24k8> |{ame  use include<> ..  "use" strips all variables
epony has quit [Remote host closed the connection]
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
epony has joined #openscad
<|{ame> J24k8: what is the proper way to do something like that? use include?
<J24k8> include attaches the script while "use<>" only give you access t the functions and modules - omitting everything else in the script
<teepee> why use $a instead of a
<|{ame> J24k8: thank you
<|{ame> teepee: thank you, I just did that, I found code online that used $ https://github.com/rsheldiii/KeyV2/blob/master/src/stems/cherry.scad and tried to reuse it, that's indeed the most straighforward way in my case
<teepee> those $ variable behave in a very special way, so "normal" variables should be just names without the $
<teepee> and some people found those examples where everything is using $ and that can cause all sorts of unexpected behavior
cart_ has joined #openscad
<|{ame> thank you, yes, i though the file was a scope to which they are passed down, but i guess with use, in the same way the module calls are not executed, the special vars are not passed down to inner scopes
<|{ame> a couple of noob questions I couldn't find in the documentation:
<|{ame>  is there any way to define something like a struct, to simplify parameter passing
<|{ame> is there any way to pass a module as a "lambda function"
<|{ame> something like
<|{ame> module addbottomCube(x){
<|{ame>     translate([0,0,1]) {x();}
<|{ame>     cube();
<|{ame> }
<J24k8> there are some experimental ideas about  but  nothing  in the current release - you can use an array to store multiple values but only address them via the index
arebil has quit [Ping timeout: 255 seconds]
|{ame has quit [Quit: Client closed]
|{ame has joined #openscad
<teepee> pca006132: I'm co-owner of the opencax github repo, so if Sean gives a go organization wise I can give you access. I'll send him a mail
<teepee> as said before, I would not expect any veto, he usually encurages projects to join
<pca006132> thanks
<pca006132> we have quite a few potential projects
<pca006132> probably a bit hard for beginners, but I think students with some experience will learn quite a lot from doing performance optimization projects :)
<|{ame> thank you,I will go with that approach
<|{ame> another question, is it possible to cache results to a file?
<|{ame> I have a minkowski sum that takes a lot of time once the resolution is risen to a sufficient level, and I'd like to store the computation to a file
<pca006132> you probably need to export the result into a mesh
<pca006132> and did you try manifold? it improves the performance for minkowski sum quite a bit
<teepee> there was work on a persistent cache, but it's not yet ready for release, so sitting around waiting to get the finishing touches
<pca006132> btw is the persistent cache using the old triangle soup PolySet?
<pca006132> I assume it probably needs significant refactoring to preserve manifoldness
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
<teepee> pca006132: yeah, it's probably needs quite some updates for the objects to store, IIRC it can do CGAL and PolySets
<teepee> the old polysets that is
Mo0osA has joined #openscad
<Mo0osA> hi
Mo0osA has left #openscad [#openscad]
<teepee> oh kay :)
<|{ame> I did not try manifold. I will!
|{ame has quit [Quit: Client closed]
mmu_man has joined #openscad
guso78k has joined #openscad
guso78k70 has joined #openscad
<guso78k70> pca006132, do you know a good paper to explain the minkowski sum algorithm ?
cart_ has quit [Ping timeout: 260 seconds]
guso78k has quit [Quit: Client closed]
<guso78k70> https://imgur.com/a/YdpVL1r after offseting an openscad default sphere , it looks like -   american football ?  i''d prefer to geodesic spheres as default ...
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
snaked has quit [Remote host closed the connection]
<teepee> minkowski is trivial for convex objects
<teepee> place second object on all vertices of the first one, make hull of that
<teepee> for first object convex, openscad tries convex decomposition and for each part do the above, union the results
<guso78k70> teepee,  I plan to need convex decomposition  for my algorithm soon. is code already included ?
<pca006132> CGAL has convex decomposition
<pca006132> manifold does not have that, but there was a PR trying to work on that (https://github.com/elalish/manifold/pull/663)
<guso78k70> suppose its part of API, but it was never utilized by openscad until now.
<pca006132> no, it is used by openscad for minkowski sum with manifold
<pca006132> and I don't think openscad supports 3D offset for now, not sure why your example can produce something
<pca006132> getting good performance with minkowski sum is tricky, because in some cases you get decompositions that contains so many parts it may be faster to just use the triangles as convex parts
<pca006132> and for offset we can do better...
<pca006132> we have a really long thread about this, but sadly I don't have time to dig into that and fix the bug in my previous prototype (https://github.com/elalish/manifold/issues/192)
<guso78k70> for offset i can make sure not to do self intersection   by only offsetting convex solids.
<pca006132> in that case using minkowski sum is trivial
<guso78k70> i think its very easy to check if an object is convex: each point distance is ABOVE the plane defined by all the other faces
<pca006132> translate the sphere for each point in your convex solids, and hull them
<guso78k70> yeahh, but you just changed the problem to how to do hull. i dont know,  how to do hull either :')
<pca006132> manifold provides a hull function
<pca006132> CGAL also has one, not sure about the performance though
<pca006132> btw why don't you just use the minkowski sum in openscad?
<pca006132> no need to reimplement these
<pca006132> and no limitation on the input being convex
<pca006132> if not, it just performs convex decomposition
<guso78k70> dont want to reimplement hull or  minkowski,i am just curious how, they work
<guso78k70> i  am just interested in using convex decomposition and i got CGAL lilnk
<pca006132> there are many ways to implement hull...
<pca006132> to be honest I don't know the details either
<pca006132> O(n^2) is trivial
<pca006132> O(n log n) is not so
teepee_ has joined #openscad
teepee_ has quit [Remote host closed the connection]
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
cart_ has joined #openscad
Non-ICE has quit [Quit: Screw you guys! I'm going home!]
ferdna has joined #openscad
guso78k70 has quit [Quit: Client closed]
<teepee> pca006132: sent invite to OpenCAx github org, let me know if any of the other potential mentors need an invite too. that's essentially for maintaining the project suggestions as github issue
mmu_man has quit [Ping timeout: 264 seconds]
<teepee> pca006132: is there an official project logo? the metallic menger sponge?
fling_ has joined #openscad
fling has quit [Ping timeout: 240 seconds]
teepee has quit [Quit: bye...]
teepee has joined #openscad
fling_ is now known as fling
mmu_man has joined #openscad
<pca006132> I need to ask
arebil has joined #openscad
<pca006132> please invite https://github.com/elalish/ as well
epony has quit [Quit: QUIT]
<teepee> pca006132: done
<pca006132> thanks
<pca006132> will add the projects later
<teepee> great, I'll use the menger sponge as logo for now, if there's anything else, let me know :)
<pca006132> sure
bozo16 has joined #openscad
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
<teepee> pca006132: the main discussion goes via the github discussion? See updated https://opencax.github.io/
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
ferdna has quit [Quit: Leaving]
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
epony has joined #openscad
<gbruno> [github] smurfix opened issue #4938 (Confused variable handling) https://github.com/openscad/openscad/issues/4938
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
SamantazFox has quit [Ping timeout: 260 seconds]
SamantazFox has joined #openscad
mmu_man has quit [Ping timeout: 264 seconds]
SamantazFox has quit [Ping timeout: 246 seconds]
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
SamantazFox has joined #openscad
Guest53 has joined #openscad
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
Guest60 has joined #openscad
Guest60 has quit [Client Quit]
Guest53 has quit [Quit: Client closed]
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
guso78k has joined #openscad
arebil has quit [Quit: arebil]
mmu_man has joined #openscad
teepee_ has joined #openscad
bozo16 has quit [Quit: Leaving]
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
guso78k52 has joined #openscad
guso78k has quit [Ping timeout: 250 seconds]
guso78k52 has quit [Client Quit]
guso78k has joined #openscad
guso78k has quit [Quit: Client closed]
J24k8 has quit [Quit: Client closed]
J24k8 has joined #openscad
Guest78 has joined #openscad
Guest78 has quit [Client Quit]
guso78k has joined #openscad
cart_ has quit [Ping timeout: 245 seconds]
Pringle has joined #openscad
<Pringle> InPhase This maybe a lot to ask but im really interested in the math behind your solutions on the rotate. Are you able to provide that?
guso78k has quit [Ping timeout: 250 seconds]
<pca006132> teepee: yeah we mainly discuss on github discussion
<teepee> perfect
<teepee> I guess we have to find out what Sean meant with not using github issues, but honestly I'm not seeing that happening
<teepee> it's a huge amount of work for nothing, the issue list is nicely filtered by colored tags, inventing that from scratch seems stupid
<teepee> we may be able to make the entry page a bit nicer and flashy
<teepee> the not attracting people is certainly not due to the page, but people just not seeing it in the first place
<teepee> google does not seem to advertise and our reach is just too limited to reach a huge enough audience
<pca006132> I think the best way would be a one-page summary + links to github issues
<teepee> in one year I tried to push that topic to one of the biggest computer magazines here (heise.de / c't) and they totally ignored GSoC
epony has quit [Remote host closed the connection]
<teepee> if we could extract the issue data into some json that should not be too difficult
<teepee> I would not want to maintain it twice though
<pca006132> true, that is painful
<pca006132> I wonder if GSoC can be counted towards internship requirement, many schools have internship requirements
<teepee> the gh tool can do that, so that might be enough to just extract things like once a day
<teepee> officially it's not
<teepee> so it depends on the school requirements
<teepee> specifically as there's no internship at google
<pca006132> true
<pca006132> I saw this: As far as university credit for doing GSoC that is completely up to the university if they accept GSoC as an internship requirement in their curriculum (many universities do accept is in lieu of an internship).
<teepee> I assume that's needed so there's no work visa required or whatever rules they have in US for that
<Pringle> InPhase has been helping a lot, anyone else want to try and help with my code? Heres what I have so far https://bpa.st/5TZA, but Im wanting something a little closer to this. Ive tried a few different ways, but im still very green at openscad :)
<teepee> yep, under US law / google view it's no internship but a stipend for working somewhere else
<teepee> but schools certainly can independently decide that work on a gsoc project does count for something they require
<teepee> yup, that works: https://api.github.com/repos/<repo-owner>/<repo-name>/issues
<teepee> ahem
mmu_man has quit [Ping timeout: 256 seconds]
greyltc has quit [Quit: WeeChat 4.1.2]
<teepee> ok, I'm off to bed, early meeting unfortunately
mmu_man has joined #openscad
epony has joined #openscad
<pca006132> bye
dustinm` has quit [Quit: Leaving]
dustinm` has joined #openscad