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
leptonix has quit [*.net *.split]
hrberg_ has quit [*.net *.split]
othx has quit [*.net *.split]
ABSHK_ has quit [*.net *.split]
JakeSays has quit [*.net *.split]
splud has quit [*.net *.split]
knielsen has quit [*.net *.split]
oldlaptop has quit [*.net *.split]
Fleck has quit [*.net *.split]
fardog has quit [*.net *.split]
EkpyroticFrood has quit [*.net *.split]
hrberg has joined #openscad
knielsen has joined #openscad
othx has joined #openscad
ABSHK has joined #openscad
JakeSays has joined #openscad
othx has quit [Changing host]
othx has joined #openscad
oldlaptop has joined #openscad
fardog has joined #openscad
Fleck has joined #openscad
leptonix has joined #openscad
snaked has quit [Ping timeout: 260 seconds]
snaked has joined #openscad
buZz has quit [Ping timeout: 256 seconds]
buZz has joined #openscad
splud has joined #openscad
LordOfBikes has quit [Ping timeout: 260 seconds]
califax has quit [Ping timeout: 255 seconds]
califax has joined #openscad
LordOfBikes has joined #openscad
foul_owl has quit [Ping timeout: 260 seconds]
foul_owl has joined #openscad
J2234 has joined #openscad
J22 has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 260 seconds]
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
<JordanBrown[m]> InPhase did you see the PM I sent?
<InPhase> Oh, yeah. I'm going to go ahead and defer that to tomorrow because that was a message that appears to deserve a more rested brain.
tcurdt has quit [Quit: bye]
tcurdt has joined #openscad
use-value has quit [Remote host closed the connection]
use-value has joined #openscad
KimK has quit [Quit: Leaving]
KimK has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
ur5us has joined #openscad
Guest53 has joined #openscad
<Guest53> IS ANYONE HOME
<JordanBrown[m]> YES
<Guest53> HI.
<JordanBrown[m]> HELLO
<Guest53> i AM TRYING TO TEACH MYSELF OPENSCAD
<JordanBrown[m]> WHY ARE WE TALKING IN ALL UPPER CASE?
<Guest53> WHAT I AM TRYING TO FIND OUT IS HOW TO CREATE A CUBE AND THEN REMOVE RECTANGULAR AREAS ON IT, AND MAYBE CLIP THE SIDES AT VARIOUS ANGLES
<Guest53> SORRY
<Guest53> my bad
<Guest53> just my habit
<JordanBrown[m]> Creating a cube is easy: cube(size);
<Guest53> im a draftsman so uppercase is normal
<Guest53> yes in know how to make a cube
<JordanBrown[m]> Now, when you say "remove rectangular areas", what do you mean?
<Guest53> so if you make a cube into a flat plate then you want to make a rectangular slot in it how do you do that?  Do you use a Boolian operation
<JordanBrown[m]> yes
<JordanBrown[m]> difference();
<JordanBrown[m]> so maybe
<JordanBrown[m]> difference() {
<JordanBrown[m]> cube([10,10,1]);
<Guest53> so difference then an x,y coordinate and true it to the origin?
<Guest53> ok I will try that
<JordanBrown[m]> translate([1,5,-1]) cube([8,1,3]);
<JordanBrown[m]> }
<Guest53> thanks
<Guest53> I am used to AutoCAD and I wanted to get into SolidWORKS but the price is steep so I found openSCAD
<Guest53> thanks a bunch mister Jordan
<JordanBrown[m]> and again the program that created that was
<JordanBrown[m]> difference() {
<JordanBrown[m]> cube([10,10,1]);
<JordanBrown[m]> translate([1,5,-1]) cube([8,1,3]);
<JordanBrown[m]> }
<Guest53> thank you so much dude
<JordanBrown[m]> So explaining that from the inside out...
<JordanBrown[m]> cube() creates a rectangular solid of the specified size.
<JordanBrown[m]> translate([x,y,z]) someobject();
<JordanBrown[m]> moves that object's origin to the specified point.
<JordanBrown[m]> difference() { a(); b(); }
<JordanBrown[m]> subtracts b from a.
<Guest53> i get it
<Guest53> thank you
<Guest53> why doesnt this chat allow copy and paste
<JordanBrown[m]> It is a very very different way of looking at design than a click-and-drag style of tool.
<Guest53> yep
<Guest53> it was way unexpected but it fascinates me because you are literally creating libraries with coding
<JordanBrown[m]> Whether it allows copy and paste depends entirely on your client. I use Matrix, and it allows both text and images - which, I believe, go through to ordinary IRC clients as links.
<JordanBrown[m]> Yes, you write programs that define your objects.
<Guest53> i just took a snapshot of the screen so i can transcribe the script you gave me
<Guest53> but thanks a bunch
<JordanBrown[m]> no problems.
<JordanBrown[m]> There is somebody here almost 24x7.
<Guest53> good night senator
Guest53 has quit [Quit: Client closed]
<JordanBrown[m]> I'm in California, so I'm one of the last ones up, but the guys in Germany will start coming online in an hour or two.
Junxter has joined #openscad
InPhase has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 246 seconds]
extor has quit [Quit: ZNC 1.8.2 - https://znc.in]
Junxter has quit [Read error: Connection reset by peer]
Junxter has joined #openscad
<J2234> moin
Guest6 has joined #openscad
<Guest6> linext: Sorry, was afk for a while; thanks for the offer, I'd love to try out the ideas from above first and come back with the results. On the latter, what's the preferred way to share .scad files - 3dcustomizer.net?
ur5us has joined #openscad
ur5us_ has joined #openscad
ur5us has quit [Read error: Connection reset by peer]
Guest49 has joined #openscad
ur5us_ has quit [Remote host closed the connection]
ur5us_ has joined #openscad
Guest49 has quit [Quit: Client closed]
ur5us_ has quit [Ping timeout: 246 seconds]
_xxoxx has joined #openscad
Junxter has quit [Ping timeout: 272 seconds]
<J2234> Guest6  yes or just use any text paste
<J2234> 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
epony has quit [Read error: Connection reset by peer]
use-value has quit [Quit: use-value]
Guest95 has joined #openscad
<Guest95> hi
<Scopeuk> Hi
Guest95 has quit [Quit: Client closed]
<gbruno> [github] andyM92 opened issue #4448 (Navigation with arrow keys) https://github.com/openscad/openscad/issues/4448
teepee has quit [Ping timeout: 255 seconds]
teepee has joined #openscad
epony has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
NogetDigitalt has quit [Quit: Leaving]
DigitaltNoget has quit [Quit: Leaving]
InPhase has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
snaked has quit [Quit: Leaving]
use-value has joined #openscad
_xxoxx has quit [Read error: Connection reset by peer]
_xxoxx has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
<gbruno> [github] andyM92 edited issue #4448 (Suggestion: Navigation with arrow keys) https://github.com/openscad/openscad/issues/4448
<lf94> Is there a reason to not use something like libfive as an alternative backend?
tsingi has quit [Quit: WeeChat 3.6]
Guest6 has quit [Quit: Client closed]
J2234 has quit [Quit: Client closed]
J2234 has joined #openscad
<InPhase> lf94: If you can go ahead and whip up the minkowski implementation for libfive, then we'd be a step closer to that option.
<InPhase> lf94: If you weren't looking to get a PhD in computational geometry this week, then one option I've pondered is some additional OpenSCAD language commands that us work with SDF functions, but then where we convert to mesh before combining with the other existing geometries.
<lf94> yea, good idea
<InPhase> These commands would basically be one to do the ray marching or equivalent, plus a set of built-in functions or function literals that we can use for SDF primitives and standardized operations. This would be a serious change to the language, but is at least bite-sized.
<lf94> I was reading dual contouring is the way to go for rendering sdfs to mesh
<InPhase> Yeah, that sort of thing is what the "or equivalent" is designed to reserve as an option.
<InPhase> Anything that keeps edges a little better would probably be preferred. But we'd have to assess. Maybe we could have more than one if there are trade-offs.
<InPhase> People will of course always want to go both directions, and do the operations in different orders.
<lf94> Since SDFs / frep are generally best for organics, I think edge accuracy is less of a concern there
<lf94> Really I want to create organic surfaces to apply to my accurately designed models
<lf94> The best I can do so far is put them into blender and do some height map stuff
<lf94> well, and one time curv, but I've given up on it and looking toward libfive these days
epony has quit [Quit: QUIT]
J2234 has quit [Quit: Client closed]
J2234 has joined #openscad
epony has joined #openscad
epony has quit [Ping timeout: 268 seconds]
epony has joined #openscad
dTal_ has joined #openscad
lf94- has joined #openscad
one-star-chef has quit [Ping timeout: 252 seconds]
dTal has quit [Ping timeout: 252 seconds]
clemens3 has quit [Ping timeout: 252 seconds]
marcus has quit [Ping timeout: 252 seconds]
lf94 has quit [Ping timeout: 252 seconds]
crazy_imp has quit [Ping timeout: 252 seconds]
one-star-chef1 has joined #openscad
marcus has joined #openscad
crazy_imp has joined #openscad
crazy_imp has quit [Changing host]
crazy_imp has joined #openscad
clemens3 has joined #openscad
califax has quit [Ping timeout: 255 seconds]
califax has joined #openscad
<linext> fyi, adding a function called imagemetrics() which supplies the width and height in pixels would be nice to have
califax has quit [Remote host closed the connection]
califax has joined #openscad
lf94- has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
lf94 has joined #openscad
_xxoxx has quit [Ping timeout: 256 seconds]
dTal_ is now known as dTal
<linext> i added a feature to 3dcustomizers.net with a button called "Set Thumbnail"
<linext> it crops the canvas of the STL to 400x300 and uploads it to the server
<linext> it becomes the main image for the customizer that you'd see on the homepage or explore page
<JordanBrown[m]> linext here is a small program running on my experimental, and its output:
<JordanBrown[m]> monkey = {{ import("monkey.svg"); }};
<JordanBrown[m]> echo(size=rmonkey.size);
<JordanBrown[m]> rmonkey = render(monkey);
<JordanBrown[m]> ECHO: size = [151.168, 293.006, 0]
<linext> i'm looking to support lithophanes like this: https://www.3dcustomizer.net/create/customization/121
<linext> so PNG file
<JordanBrown[m]> Now you're going to make me go find a PNG file :-)
<JordanBrown[m]> But the same mechanism will work with "surface" in the middle instead of "import".
<JordanBrown[m]> Also note: with existing OpenSCAD, you can always use resize() to force it to a particular size.
<linext> will resize reduce the number of pixels?
<JordanBrown[m]> no
<linext> for lithophanes, sometimes fewer pixels is better
<JordanBrown[m]> Sure, but OpenSCAD isn't an image manipulation tool.
<JordanBrown[m]> You quite possibly want to do all sorts of image manipulation *before* you feed it to OpenSCAD.
<JordanBrown[m]> But resize() lets your OpenSCAD program be independent of the number of pixels in your PNG.
<JordanBrown[m]> The stuff I'm working on will (among many other things) let you make your OpenSCAD program use the PNG dimensions in its calculations, which is more general.
<JordanBrown[m]> It would be cool to have an import("foo.png") function that would return metadata and an array of pixel values.
califax has quit [Ping timeout: 255 seconds]
crazy_imp has quit [Ping timeout: 256 seconds]
hrberg has quit [Ping timeout: 256 seconds]
hrberg has joined #openscad
califax has joined #openscad
crazy_imp has joined #openscad
J2234 has quit [Quit: Client closed]
J2234 has joined #openscad
Lagopus has quit [Read error: Connection reset by peer]
Lagopus has joined #openscad
<linext> for my web app, resizing the PNG is an extra step
<linext> users may not know how to do it
<linext> sure i could write a script to do it
<linext> maybe that's the answer
<linext> detect the dependency upload and ask the user if they want to resize the pixels
califax has quit [Remote host closed the connection]
califax has joined #openscad
<JordanBrown[m]> Like I said, resampling is only one of the things you might want to do with your PNG. Contrast and brightness are another, though I think those map to scaling and translating the resulting 3D object. But you might also want to change the response curve, and that's an image manipulation thing.
<JordanBrown[m]> (Idle thought: perhaps surface() should accept a response curve.)
teepee_ has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
ur5us_ has joined #openscad
one-star-chef1 is now known as one-star-chef
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
snaked has joined #openscad
snaked has quit [Ping timeout: 255 seconds]
califax has quit [Remote host closed the connection]
califax has joined #openscad
<linext> i wonder if potrace exists as a web assembly
snaked has joined #openscad
Lagopus has quit [Read error: Connection reset by peer]
Lagopus has joined #openscad
teepee has quit [Quit: bye...]
teepee has joined #openscad
J2234 has quit [Ping timeout: 260 seconds]
castaway has quit [Ping timeout: 256 seconds]
<linext> maybe someone wants to make this into a christmas tree (pine tree) for the advant calendar: https://www.3dcustomizer.net/create/customization/47
Lagopus has quit [Read error: Connection reset by peer]
J1A84 has joined #openscad
TheAssassin has quit [Ping timeout: 255 seconds]
TheAssassin has joined #openscad