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
kintel has joined #openscad
<gbruno> [github] ochafik edited pull request #5180 (Color support for 3D rendering + export to glTF, Collada, STEP, PLY, X3D) https://github.com/openscad/openscad/pull/5180
L29Ah has quit [Read error: Connection reset by peer]
L29Ah has joined #openscad
<gbruno> [github] ochafik edited pull request #5180 (Color support for 3D rendering + export to glTF, Collada, STEP, PLY, X3D) https://github.com/openscad/openscad/pull/5180
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
J24k23 has joined #openscad
J24k has quit [Ping timeout: 250 seconds]
<gbruno> [github] ochafik synchronize pull request #5180 (Color support for 3D rendering + export to glTF, Collada, STEP, PLY, X3D) https://github.com/openscad/openscad/pull/5180
<gbruno> [github] ochafik synchronize pull request #5180 (Color support for 3D rendering + export to glTF, Collada, STEP, PLY, X3D) https://github.com/openscad/openscad/pull/5180
JakeSays has joined #openscad
<gbruno> [github] ochafik synchronize pull request #5180 (Color support for 3D rendering + export to glTF, Collada, STEP, PLY, X3D) https://github.com/openscad/openscad/pull/5180
mmu_man has quit [Ping timeout: 268 seconds]
LordOfBikes has quit [Ping timeout: 255 seconds]
<gbruno> [github] ochafik synchronize pull request #5180 (Color support for 3D rendering + export to glTF, Collada, STEP, PLY, X3D) https://github.com/openscad/openscad/pull/5180
LordOfBikes has joined #openscad
<gbruno> [github] ochafik edited pull request #5180 (Color support for 3D rendering + export to glTF, Collada, STEP, PLY, X3D) https://github.com/openscad/openscad/pull/5180
<gbruno> [github] ochafik synchronize pull request #5180 (Color support for 3D rendering + export to glTF, Collada, STEP, PLY, X3D) https://github.com/openscad/openscad/pull/5180
<gbruno> [github] keithel synchronize pull request #5173 (Show STL files to import in Open File dialog #5172) https://github.com/openscad/openscad/pull/5173
<gbruno> [github] kintel pushed 5 additions 1 modifications (Attempt a simple rebuild of PolySet on Manifold error) https://github.com/openscad/openscad/commit/6d69cc2bf9a800f623304b90218647669aca430b
<gbruno> [github] kintel opened pull request #5183 (Attempt a simple rebuild of PolySet on Manifold error) https://github.com/openscad/openscad/pull/5183
<gbruno> [github] kintel edited issue #4825 (Move manifold out of experimental) https://github.com/openscad/openscad/issues/4825
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
HumanG33k has quit [Ping timeout: 264 seconds]
HumanG33k has joined #openscad
foul_owl has quit [Ping timeout: 264 seconds]
foul_owl has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
califax has quit [Remote host closed the connection]
Guest59 has joined #openscad
califax has joined #openscad
Guest59 has quit [Quit: Client closed]
guso78k has joined #openscad
J24k23 has quit [Quit: Client closed]
J24k23 has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee has joined #openscad
guso78k has quit [Quit: Client closed]
stephen has quit [Read error: Connection reset by peer]
foul_owl has quit [Ping timeout: 256 seconds]
stephen has joined #openscad
foul_owl has joined #openscad
mmu_man has joined #openscad
adigitoleo has quit [Remote host closed the connection]
adigitoleo has joined #openscad
J24k23 has quit [Ping timeout: 250 seconds]
J24k has joined #openscad
<J24k> hm so color in 3mf?  but glTF looks promising on ochafik.com/openscad3
cbmuser has quit [Ping timeout: 268 seconds]
<teepee> ochafik has added color to 3mf too, although only to library version 2.x so it depends on the build if that's available in his builds
<J24k> At the moment slicer don't read color info from it (BS only reads from OBJ)  but glTF seems to be compatible with  blender
<J24k> (but blender can't export 3mf)
<J24k> sounds like the chicken or the egg problem .. so good we starting anywhere
guso78k has joined #openscad
<guso78k> Looking at openscad_deps/mxe/usr/x86_64-w64-mingw32.static.posix/include/Model/COM/NMR_DLLInterfaces.h (3MF Version 1) I have the impression, that there is no support for per-face individual color. is it possible ?
<guso78k> teepee, do your MXE builds select 3MF V2 ?
<guso78k> yes, openscad  can potentially export colored 3mf soon,  lots of tests and critical checks to pass first
<guso78k> a good question could be, how hull will handle the colors of its input shapes ...
mmu_man has quit [Ping timeout: 264 seconds]
mmu_man has joined #openscad
guso78k has quit [Ping timeout: 250 seconds]
mmu_man has quit [Ping timeout: 255 seconds]
cbmuser has joined #openscad
mmu_man has joined #openscad
peeps[work] has quit [Remote host closed the connection]
peeps[work] has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
peeps[work] has quit [Remote host closed the connection]
peeps[work] has joined #openscad
peeps[work] has quit [Remote host closed the connection]
peeps[work] has joined #openscad
J24k has quit [Quit: Client closed]
J24k has joined #openscad
<gbruno> [github] cjmayo opened pull request #5184 (Remove lib3mf from Build Configuration Summary) https://github.com/openscad/openscad/pull/5184
guso78k has joined #openscad
<teepee> guso78k: I think MXE is still lib3mf 1.x
stephen has quit [Remote host closed the connection]
guso78k78 has joined #openscad
<guso78k78> teepee,. thank you for sharing my suspicion. Looking at the header files lib3mf v1.x looks very much like windows whereas lib3mf 2.x very much looks like unix
<guso78k78> As lib3mf v1.x appears not to support per-face materials, it will be challenging to created colored 3mf inside windows
<guso78k78> (i did not see  function with a triangle index and a material property id in lib3mf V1.x
<teepee> the strategy would be moving to 2.x
<buZz> does that mean that eventually the F6 export will get colored? if so, nice!
<guso78k78> buZz, exactly that. Rendered with color is a prerequisite to being able to export  colored objects
<guso78k78> The addition, I have in each model is a Material table and an  material index for each triangle of the model.
<guso78k78> Right now the Material only consists of a color, but many other attributes like density, shininess, stiffness (and probably many others are possible)
<buZz> could be very nice, maybe some color() variant that can pick shinyness? though would be really cool on renders/screenshots anyway
<buZz> and possibly real transparancy? :P
<guso78k> colors do yet already have a proper transparency value. if its not correctly handled, its not an issue of the material ;)
<guso78k> but you are right. real transparency is a matter of volume , and it does not work when its attached to the surface only(there will be no depth-dependency)
<buZz> every time i use it (for decorative reasons) , i need to move the transparant object around to even have something visible through it :)
<buZz> on F5 renders though
<guso78k> right now i am creating an "Experimental Feature" to quickly enable/disable it without having to change my branch and recompile ;)
guso78k78 has quit [Quit: Client closed]
guso78k has quit [Quit: Client closed]
mmu_man has quit [Ping timeout: 256 seconds]
mmu_man has joined #openscad
mmu_man has quit [Ping timeout: 264 seconds]
<gbruno> [github] kintel pushed 1 modifications (Remove lib3mf from Build Configuration Summary (#5184) LIB3MF_API removed in: e0f06a02c ("Rewrote FindLib3MF.cmake (#5100)", 2024-04-25)) https://github.com/openscad/openscad/commit/ee4780f6317409f29f5f1e88f8bc8400157fb45d
<gbruno> [github] kintel closed pull request #5184 (Remove lib3mf from Build Configuration Summary) https://github.com/openscad/openscad/pull/5184
mmu_man has joined #openscad
<buZz> is there some method to shear spheres? :)
<buZz> or would i have to forloop real flat cylinder()
teepee_ has joined #openscad
<buZz> oh i guess multmatrix()
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
mmu_man has quit [Ping timeout: 268 seconds]
mmu_man has joined #openscad
slice has joined #openscad
<slice> Hello! New to openscad. I dug into docs a bit but couldn't find if there's a way to express something like this:
<slice> ```
<slice> choice = 0; //[0, 1]
<slice> options = [circle(), cube()]
<slice> / Depending on variable choice's value, render the element from the options array.
<slice> options[choice];
<slice> ```
<slice> Hello! New to openscad. I dug into docs a bit but couldn't find if there's a way to express something like this:
<slice> ```
<slice> choice = 0; //[0, 1]
<slice> options = [circle(), cube()]
<slice>  // Depending on variable choice's value, render the element from the options array.
<slice> options[choice];
<slice> ```
<slice> (sorry wish i can edit the text)
<slice> To be specific, i want to selectively render an element stored in an array, instead of doing a giant if-else block
<buZz> hmm
<teepee> you can't assign geometry to variables yet
<buZz> module object(thisone) { if (thisone == 1) cube(); if (thisone == 2) sphere(); }
<buZz> :)
<teepee> so either have the options as values
<teepee> see part_select()
<buZz> i often 'comment sections of code' by wrapping it in if(0){ }
<buZz> ;P
<teepee> you do know there is "*" for that?
<buZz> yeah /* */
<buZz> oh, the * modifier, yeah, this is more for bigger blocks of code
<buZz> single lines i usually just do //
<buZz> easier to hit / twice than shift + 8
<teepee> main thing is that * is part of the syntax, so it will catch multiline *union() { ... } or something like that
<teepee> for single line it does not matter too much
kintel has joined #openscad
<gbruno> [github] kintel closed issue #5086 (path_extrudes() not loved by Manifold (or even CGAL, maybe...)) https://github.com/openscad/openscad/issues/5086
<buZz> hmhm
<buZz> so, eh, are rotate() and translate() actually just calls to multmatrix() internally?
<kintel> yeah
<kintel> ..to the point where saving as .csg only yields multmatrix nodes
<buZz> fancy
<buZz> so , there -could- be a skew() or shear()
<buZz> :)
<buZz> or i'm not understanding the reason why not
<buZz> my sole motivation is weirder sphere shapes
* teepee is motivated to get some sleep ;-)
<kintel> There may be parts of the underlying CSG engine which imposes limitations to linear transformations
<kintel> e.g. I believe some parts of CGAL requires affine transformation
<kintel> but shear should be affine
<slice> teepee i can see using children() as a way to do this :D
<kintel> yeah: module shear(args) multmatrix(<math to build matrix from args>) children();
<slice> teepee and buZz what * modifier are you discussing? For comment blocks or something else?
<buZz> put a * infront of a cube(); , it wont be rendered
<kintel> I expect shear to exist somewhere on the interwebs. Perhaps even one of the LLMs can do it for free :)
<buZz> similar to the % modifier
<buZz> teepee: sleep well ;)
<teepee> and good night :)
<buZz> hehe
<buZz> i hope someday someone makes a printed copy of that wikibook
<buZz> i never use ! but maybe i should, hmm
<slice> I can see the modifiers for debugging, but less so for selectively rendering a component based on const variable values (e.g., for thingiverse customizer).
<slice> Unless I am missing some creative usage
<buZz> nah its all for during-design
<slice> cool, i am on the same page
<buZz> to quickly identify things, or ignore them
<buZz> as they are single character too, should be easy
<buZz> but i was saying, // is easier to type than *
<buZz> :D
<buZz> * is a tree though, so yeah
<buZz> ¯\_(ツ)_/¯
<slice> yeah fair :D
<slice> i have been spamming module to encapsulate, so often I use // (ctrl-d keyboard shortcut in openscad) to keep it simple as well
slice has quit [Quit: Client closed]
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]