<lf94>
People reported no power at the gym (or the whole mall that's there)
<lf94>
Im surprised as hell my laptop is still going
LordOfBikes has quit [Ping timeout: 255 seconds]
LordOfBikes has joined #openscad
<InPhase>
lf94: Well, if you never return, it was great knowing you, and thanks for all the fish.
epony has quit [Ping timeout: 268 seconds]
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
epony has joined #openscad
<JordanBrown[m]>
This is why I don't live in the frozen-wasteland part of the country.
<JordanBrown[m]>
For JSON output, I would think of a json(v) module that would emit v as JSON text, without any decoration. (No "ECHO: ".) If you used it exactly once, and if we cleaned up other noise in the output, you could use it from the command line to generate a JSON file.
<JordanBrown[m]>
Also maybe a "save output" UI operation that would save the output from the most recent run of the program as a text file. You could do that today with copy/paste and a text editor, but that's tedious.
<JordanBrown[m]>
For completeness, I'd probably have a json(v) function that returns v as a string in JSON format.
ur5us has quit [Ping timeout: 260 seconds]
datenwolf has joined #openscad
castaway has joined #openscad
guso78 has joined #openscad
<JordanBrown[m]>
So I tried asking ChatGPT about OpenSCAD. I asked it about bugs in OpenSCAD, and it suggested that I use the "check" feature to check my models. I asked it about that feature. Here's what it said: https://bpa.st/6IHEQ
<JordanBrown[m]>
I asked it to write a program that would create a model of a tesseract. It said it couldn't, because a tesseract is 4D and OpenSCAD is a 3D modeling language. Then it gave me a program that would create a wireframe view of a tesseract. It actually looked kind of plausible until it got to the "line" module. It said in its comments about the program "Note that the "line" function in OpenSCAD is used to draw a line segment between
<JordanBrown[m]>
two points, which is used to draw the edges of the tesseract.".
<guso78>
jordan, AFAIK there is no check function, right ?
<JordanBrown[m]>
Correct. And the syntax that it gives could not work, because cube() is a module, not a function.
<guso78>
but this chatGPT can probably be used to forecast useful features ....
<JordanBrown[m]>
It also tried to draw its lines using 4D coordinates.
<JordanBrown[m]>
I told it that OpenSCAD does not have a line function, and it said "oops" and tried to give me a program that used polyhedron instead. But it used the "edges" parameter of polyhedron, which doesn't exist, and used 4D coordinates.
<JordanBrown[m]>
I told it that OpenSCAD can't handle 4D coordinates, and it tried to fix that by transforming those coordinates into 3D. But it used a list comprehension syntax that OpenSCAD doesn't know.
<JordanBrown[m]>
projected_vertices = [projection * v for v = vertices];
<JordanBrown[m]>
But it's coming up with remarkably imaginative ways to create tesseracts in OpenSCAD.
<guso78>
jordan, my path extrude actually uses 4d coordinates whereas the last extra coordinate specifies the corner radius, when specified :)
<JordanBrown[m]>
I wouldn't call that 4D coordinates - that's a 3D coordinate plus an additional parameter.
<JordanBrown[m]>
I should work on 4D extensions to OpenSCAD, to release in about 361 days.
<guso78>
jordan is this an upcoming openscad anouncement ?
<JordanBrown[m]>
I thought I'd give it a bit harder problem: "Write a program that reads OpenSCAD programs and produces STL files."
<JordanBrown[m]>
What, the 4D extensions? Yep, if I remember.
<JordanBrown[m]>
To be announced on Monday, April 1, 2024.
<guso78>
Haha, i got it:) :)
<JordanBrown[m]>
So I asked it to write a program that would read an OpenSCAD program and produce an STL file. And it did!
<guso78>
i just thought it could be extend CGAL for 4D
<guso78>
tough ...
guso78 has quit [Quit: Client closed]
<JordanBrown[m]>
https://bpa.st/VK4BG will read an OpenSCAD program and produce an STL file, more or less.
<JordanBrown[m]>
Anyhow, bedtime. G'nite.
epony has quit [Remote host closed the connection]
epony has joined #openscad
J23 has joined #openscad
Guest66 has quit [Quit: Client closed]
paddymahoney has quit [Remote host closed the connection]
fling_ has joined #openscad
fling has quit [Ping timeout: 255 seconds]
fling_ is now known as fling
ToAruShiroiNeko has quit [Ping timeout: 260 seconds]
ToAruShiroiNeko has joined #openscad
J23 has quit [Quit: Client closed]
J23 has joined #openscad
rvt has quit [Ping timeout: 265 seconds]
rvt_ has joined #openscad
qeed has joined #openscad
qeed_ has quit [Ping timeout: 248 seconds]
fedorafan has joined #openscad
snaked has quit [Quit: Leaving]
guso78 has joined #openscad
<juri_>
guso78: forcasting useful features in a language is certainly what chatGPT is good for. ii've been using it to 'halucinate' the mixed 3d printing / CNC scad language for my slicer.
<guso78>
juri, if i was an abslute newbie, where would i start to test chatgpt ?
<juri_>
guso78: set up an account, and just talk to it, at chat.openai.com.
<juri_>
keep in mind, they are recording everything. for all of the reasons.
fedorafan has quit [Ping timeout: 248 seconds]
fedorafansuper has joined #openscad
<guso78>
yep, chatgpt is cool. i am wondering if it can solve verbal puzzles ...
guso78 has quit [Quit: Client closed]
Guest73 has joined #openscad
Guest73 has quit [Client Quit]
kintel_ has joined #openscad
<JordanBrown[m]>
Note: what you get for free is ChatGPT-3.5; it appears that to get -4 you have to pay $20/month.
califax has quit [Remote host closed the connection]
califax has joined #openscad
<lf94>
In a stroke of luck, my power is back. I have no idea how.
<lf94>
I must have been one of the very first they came to fix to or something. I'm thinking it has to do with the fact a commercial space is down from me...
<InPhase>
lf94: Welcome back.
<lf94>
So I almost got erizo working with pipes
<lf94>
For some reason the pipe is reporting 0s always
<lf94>
I also had to create some sort of pipe format - filesize then the file
<lf94>
Because the file itself doesnt indicate filesize
<InPhase>
lf94: One thing I've found is that bad storms seem to get repaired in a tree-like manner. So the closer you are to the main distribution lines along the distribution tree, the more likely you are to get power back sooner.
<lf94>
Yes, I believe I'm near the top. Last time this happened I was really curious about if there was an online powerline map. There is not.
<InPhase>
lf94: If your power to your home is underground, and the above ground bits are close to the main lines, then your power is rarely off for long, because every outage affects a large number of people.
<lf94>
Nah, all above ground. But the distance from me to the pole is not far
<lf94>
(as is the case for most houses in Canada)
<InPhase>
lf94: I became curious about this years ago, and tried to find such maps, but couldn't. I ended up painstakingly tracing the connections on Google streetview.
<InPhase>
I confess, sometimes I obsess over understanding niche problems. :)
bjorkintosh has joined #openscad
L29Ah has left #openscad [#openscad]
Guest7288 has joined #openscad
Guest7288 has quit [Client Quit]
Guest73 has joined #openscad
Guest73 has quit [Client Quit]
Guest18 has joined #openscad
<Guest18>
Hi
bjorkintosh has left #openscad [Leaving]
Guest18 has quit [Client Quit]
fling has quit [Remote host closed the connection]
fling has joined #openscad
TheCoffeMaker has quit [Max SendQ exceeded]
TheCoffeMaker has joined #openscad
<lf94>
InPhase: that's literally the thought path / process I was looking at during Winter
<lf94>
And even just a few hours ago
<lf94>
You can actually see the lines almost no problem
<lf94>
I feel this is a good AI problem
<lf94>
Massive data set, tedious task
<Scopeuk>
My guess is those maps exist but are kept by the power companies as they would also highlight key points of failure with large impact
<InPhase>
Scopeuk: Yeah, probably.
J23 has quit [Quit: Client closed]
J23 has joined #openscad
<lf94>
So do you think you'd be asked to take down a publicly created one?
<lf94>
But yeah, I had the same thoughts - security issue.
kintel_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peepsalot has joined #openscad
fedorafansuper has quit [Ping timeout: 252 seconds]
fedorafan has joined #openscad
drkow has joined #openscad
drfff has quit [Ping timeout: 248 seconds]
<lf94>
I gotta say, Amazon is really handy sometimes. I ordered a car<->outlet adapter last night at 11:30pm. It just came in
<InPhase>
lf94: Shipping so fast it gets there right after you need it.
<lf94>
I did not expect it to come this fast, and before the miracle of my power coming back on
<Lagopus>
question: similar to python's "if ___name__ == '__main__': " does openscad offer a conditional similar to this. Mainly this is to leave testing code in files to be sourced by another project.
gknux has left #openscad [....and i am outta here....]