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
J24k63 has quit [Quit: Client closed]
J24k63 has joined #openscad
mmu_man has quit [Ping timeout: 246 seconds]
greenbigfrog has quit [Ping timeout: 252 seconds]
J24k63 has quit [Quit: Client closed]
J24k63 has joined #openscad
teepee_ has joined #openscad
Smeef has quit [Read error: Connection reset by peer]
Smeef has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
greenbigfrog has joined #openscad
LordOfBikes has quit [Ping timeout: 244 seconds]
LordOfBikes has joined #openscad
guso78k has quit [Quit: Client closed]
greenbigfrog has quit [Ping timeout: 272 seconds]
greenbigfrog has joined #openscad
J24k4 has joined #openscad
J24k63 has quit [Ping timeout: 256 seconds]
teepee has quit [Ping timeout: 260 seconds]
teepee has joined #openscad
Guest63 has joined #openscad
<Guest63> function main() {
<Guest63>     const woodThickness = 0.75; // 3/4 inch thick wood
<Guest63>     const outerHeight = 30; // total height in inches
<Guest63>     const outerWidth = 20; // total width in inches
<Guest63>     const outerDepth = 18; // total depth in inches
<Guest63>     // Calculate the inner dimensions of the cabinet
<Guest63>     const innerHeight = outerHeight - 2 * woodThickness;
<Guest63>     const innerWidth = outerWidth - 2 * woodThickness;
<Guest63>     const innerDepth = outerDepth - woodThickness;
<Guest63>     // Create the outer structure of the cabinet
<Guest63>     let cabinet = cube([outerWidth, outerDepth, outerHeight]);
<Guest63>     // Subtract the inner space to create the shell
<Guest63>     let innerSpace = translate(
<Guest63>         [woodThickness, woodThickness, woodThickness]
<Guest63>     )(cube([innerWidth, innerDepth, innerHeight]));
<Guest63>     cabinet = cabinet.subtract(innerSpace);
<Guest63>     return cabinet;
<Guest63> }
Guest63 has left #openscad [#openscad]
guso78k has joined #openscad
<guso78k> ??? is this openSCAD-Lisp ?
<guso78k> teepee thx! Dont want do undermine jorndans work then '=D
misterfish has joined #openscad
<peepsalot> maybe openjscad?
<peepsalot> or maybe AI nonsense
greenbigfrog has quit [Ping timeout: 248 seconds]
greenbigfrog has joined #openscad
greenbigfrog has quit [Ping timeout: 260 seconds]
greenbigfrog has joined #openscad
greenbigfrog has quit [Ping timeout: 276 seconds]
misterfish has quit [Ping timeout: 252 seconds]
JakeSays_ has joined #openscad
JakeSays has quit [Ping timeout: 252 seconds]
greenbigfrog has joined #openscad
rawgreaze_ has joined #openscad
rawgreaze has quit [Ping timeout: 248 seconds]
rawgreaze_ is now known as rawgreaze
misterfish has joined #openscad
guso78k has quit [Quit: Client closed]
JakeSays has joined #openscad
JakeSays_ has quit [Ping timeout: 244 seconds]
misterfish has quit [Ping timeout: 252 seconds]
misterfish has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
samugonmar has joined #openscad
samugonmar has quit [Client Quit]
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
guso78k has joined #openscad
<guso78k> peeps, i actually git some progress for OpenJScad in https://github.com/gsohler/openscad/tree/js . But i doubt its mature enough for given code
ccox_ has joined #openscad
ccox has quit [Ping timeout: 260 seconds]
Junxter has quit [Remote host closed the connection]
Junxter has joined #openscad
greenbigfrog has quit [Ping timeout: 252 seconds]
greenbigfrog has joined #openscad
greenbigfrog has quit [Ping timeout: 252 seconds]
greenbigfrog has joined #openscad
mmu_man has joined #openscad
<gbruno> [github] fmarionpoll opened issue #5425 (problem with path after openscad-2024.10.28-x86-64) https://github.com/openscad/openscad/issues/5425
<gbruno> [github] fmarionpoll edited issue #5425 (problem with path after openscad-2024.10.28-x86-64) https://github.com/openscad/openscad/issues/5425
RoyK has quit [Read error: Connection reset by peer]
guso78k has quit [Quit: Client closed]
RoyK has joined #openscad
<gbruno> [github] jmauerhan opened issue #5426 (Trying to run newly installed OpenScad results in The application Finder does not have permission to open (null).) https://github.com/openscad/openscad/issues/5426
guso78k has joined #openscad
<gbruno> [github] jmauerhan edited issue #5426 (Trying to run newly installed OpenScad results in The application Finder does not have permission to open (null).) https://github.com/openscad/openscad/issues/5426
<gbruno> [github] jmauerhan edited issue #5426 (Trying to run newly installed OpenScad results in The application Finder does not have permission to open (null).) https://github.com/openscad/openscad/issues/5426
snaked has quit [Quit: Leaving]
L29Ah has quit [Read error: Connection reset by peer]
L29Ah has joined #openscad
<gbruno> [github] kintel closed issue #5426 (Trying to run newly installed OpenScad results in The application Finder does not have permission to open (null).) https://github.com/openscad/openscad/issues/5426
J24k4 has quit [Quit: Client closed]
J24k4 has joined #openscad
zauberfisch has joined #openscad
sobel has joined #openscad
misterfish has quit [Ping timeout: 272 seconds]
<peepsalot> guso78: not sure what you mean, but i was referring to this project. https://github.com/jscad/OpenJSCAD.org
<pca006132> it is renamed into jscad recently iirc
<pca006132> and it is not very related to openscad, except they share somewhat the same philosophy and some of their users use openscad before
<pca006132> they don't want to integrate manifold for now because manifold is not written in js and/or have some API compatablity problems
Non-BEAST has quit [Quit: Screw you guys, im going home!]
_whitelogger has joined #openscad
mmu_man has quit [Ping timeout: 245 seconds]
guso78k has quit [Ping timeout: 256 seconds]
Smeef has quit [Read error: Connection reset by peer]
Smeef has joined #openscad
<L29Ah> what would be the best IRC channel to discuss cadquery/build123d?
lostapathy has quit [Ping timeout: 246 seconds]
lostapathy has joined #openscad
<teepee> ¯\_(ツ)_/¯
misterfish has joined #openscad
mmu_man has joined #openscad
J24k67 has joined #openscad
ToAruShiroiNeko has quit []
J24k4 has quit [Ping timeout: 256 seconds]
guso78k has joined #openscad
Guest82 has joined #openscad
Guest82 has quit [Client Quit]
<guso78k> Just looked into OpenJSCAD... Not my favorite. The JSCad code is very big compared to the model they create ... And its not compiled source, so its slow due to interpreter
<InPhase> guso78k: People go to great lengths to do the modeling in their favorite language. ;)
<guso78k> yes i know, So do I '=D
<guso78k> last time i have written 30 lines  which help me to make my code more compact by 10 chars or so ..
aiyion has quit [Ping timeout: 260 seconds]
aiyion has joined #openscad
<guso78k> one could guess, what this code does:  plate -= cylinder(d=2,h=4) ^ [0,[-5,5],-1]
<L29Ah> i guess it subtracts two translated cylinders from a plate
* L29Ah never looked into jscad
<guso78k> I'm happy, its comprehensive :)
guso78k has quit [Quit: Client closed]
Guest40 has joined #openscad
Guest40 has quit [Client Quit]
teepee_ has joined #openscad
guso78k has joined #openscad
<sobel> hihi, i just came by to see what people talk about wrt OpenSCAD. big fan of the tool.
teepee has quit [Ping timeout: 260 seconds]
teepee_ is now known as teepee
<teepee> it's been relatively quiet lately
<guso78k> teepee,  reading in step was quit easy, suppose the main challenge is to convert all "items" to openscad triangles, right ?
<teepee> that would be a good start. I do think we may want to try a different import style at some point
<teepee> sort-of "import as code"
<guso78k> hmm, we are talking about different things.
<teepee> SVG would be another candidate, but we lack the 2d primitives
<guso78k> can you give quick example of "import as code"
<guso78k> adding 2d primitives for a "real circle" is easy, but making csg turn an circle into an arc is hell of work
<teepee> instead of writing import("file") you have a menu entry import which converts the file into a temporary file containing scad code
<teepee> like SVG import could import the structure as circle() square() and so on
<L29Ah> arc is just a polygon()
* L29Ah hides
<guso78k> personally I prefer the way as-is , so to use import() somewhere in the middle of the code.  doubt its a good idea to brute-force converting everything to SCAD
<teepee> well, yes, it could do polygons to get started
<teepee> but better would be having quadratic and cubic splines - that's also the same features text() uses
<guso78k> in my fork its even possible to embed SVG code inside my code. its a mixture of SVG AND Python, but its one file and its consistent.
<teepee> benefit is 1) it would retain circles where possible and 2) could be edited in a limited way
<teepee> I'm not sure I want that
<teepee> benefit in regard to text() would be that it makes it shareable without causing differences due to different font versions
<guso78k> if we introduced a primtive for a *real* circle, we hope that clipper does the *real*  work for us
<teepee> circle is circle, what would be a "real" one?
<guso78k> openscad circle is a N-polygon. a *real* circle does not have any corners ...
<teepee> no, a circle is a circle in scad
<teepee> the mesh render makes it a polygon
<teepee> language != mesh backend
<guso78k> '=D '=D maybe i was mistaken ...
<teepee> the scad -> csg -> freecad -> step pipleline produces "real" circles/spheres
<guso78k> if i use an openscad circle for a CSG op, it would always convert the circle to an N-Polygon first, right ?
<teepee> openscad as application in its current state is a mesh renderer, but there's nothing preventing an additional backend based on for example OCC using the scad language
<teepee> again, that's the current mesh render engine
<teepee> that is not a property of the language
guso78k has quit [Quit: Client closed]
guso78k has joined #openscad
<guso78k> Yeahh got it, we need to improve the  mesh render engine
<teepee> fine for me, for my needs it's totally ok. I'd like some easier geometry stuff
<teepee> I don't have any use for step output myself
<guso78k> In any case, does anybody have a good example,  how to iterate and comprehend the database once read in with libstep?
<guso78k> having this in place would enable openscad to display STEP files
<teepee> I think that things like your attachment idea is more useful :-)
mmu_man has quit [Ping timeout: 252 seconds]
<guso78k> handles ? its all about multmatrix and divmatrix '=D
guso78k has quit [Quit: Client closed]
guso78k has joined #openscad
mmu_man has joined #openscad
guso78k has quit [Ping timeout: 256 seconds]
misterfish has quit [Ping timeout: 276 seconds]
alex28 has joined #openscad
<alex28> Hi!  Is this an OK place to ask a question about using OpenSCAD syntax?
<teepee> yep
<alex28> Cool, thanks. I am trying to use a for loop to step through a set of text strings, and I am getting behaviour I didn't expect, wonder if anyone can explain my error?
<alex28> Not sure how much I can paste here, will try
<InPhase> Wait
<InPhase> paste?
<othx> paste is https://bpa.st for .scad files and other text like long error reports, https://pasteboard.co/ or https://imgur.com/ for images
<InPhase> Use one of those sites.
<alex28> Thanks!
<InPhase> It helps if you post the full thing with the variables.
<InPhase> We can quickly run it and be on the same page as you, looking at the same thing, that way.
<InPhase> As is, this just produces a bazillion errors.
<alex28> Sorry - trying again...
<teepee> and nothing obvious stands out, so running saves a lot of time
<alex28> Here we go:  https://bpa.st/TD3Q
<InPhase> Great. Now what's the issue?
<teepee> I see only an "a"
<alex28> This is a set of labels for the function keys on an Apple keyboard.  The plan is to step through a list of names above them.
<InPhase> I see alice and a bunch of blanks.
<alex28> What is actually happening is that it is stepping through individual letters in one of the names.
<teepee> put a # infront of the 2nd for()
<InPhase> alex28: First, namelist = [["alice"], ["bob"], ["charlie"]]
<alex28> I tried that but instead it prints all 3 names on the first square
<InPhase> I see that.
<InPhase> But that's a different error I think.
<alex28> I put a # but it seems to make no difference
<teepee> that should show the letters in transparent red
<alex28> Gotcha, it does, just not changing the behaviour
<InPhase> alex28: Let me try to guess what you meant to do.
<alex28> My goal is that the boxes contain the text in the name list, one after another
<teepee> ouchies, I had lazy union on and that changes the result, that's a bug
<alex28> IE box 1: "alice", box 2: "bob" etc
<alex28> Thanks for any ideas now I've got the problem described!
<teepee> not quite, you have 14 boxes, you want 3?
<alex28> Those are just examples, I could give more!
<teepee> but one word = one box?
<alex28> Darren, Erica, Faisal, etc
<teepee> then it would be easier to first solve one box
<alex28> Yes, one word = one box
mmu_man has quit [Ping timeout: 264 seconds]
<InPhase> alex28: https://bpa.st/IZ7A This?
<alex28> Do you see what I was trying to do with namelist[i] - I expected it it give me the i'th item in the list
<alex28> Trying it!
<alex28> YES
<alex28> Now, to understand what you did!
<alex28> ooh, len() is new to me
<alex28> I see what you mean there teepee
<teepee> of course it's not strictly necessary, but I like to divide and conquer :-)
mmu_man has joined #openscad
<alex28> InPhase you've absolutely fix what I was trying to achieve, but I am struggling to understand why my original didn't work and how you fixed it!
J24k67 has quit [Quit: Client closed]
J24k67 has joined #openscad
alex28 has quit [Quit: Client closed]
alex94 has joined #openscad
<alex94> I got kicked out - just to make sure I thank you all for looking and InPhase your code 100% solves my practical issue, thanks so much
greenbigfrog has quit [Ping timeout: 252 seconds]