<gbruno>
[github] kintel pushed 17 modifications (Start rotate_extrude on -X only for no angle specified. (#5553) * Start rotate_extrude on -X only for no angle specified. Start on +X when an angle is specified, including 360. Add "start=" to let you explicitly specify. Give a deprecation warning with no args and $fn odd.) https://github.com/openscad/openscad/commit/92a13b4f06221ef26c901130c0c52658976cdfb2
<KREYREN>
teepee, it's modeling a phone xiaomi-ursa to have it's x y z dimensions as a 3D object
<KREYREN>
oh you mean like 3 diameters for the fillets? fillet for the top, bottom and edges
<teepee>
one is the corners in x/y plane
ccox has quit [Ping timeout: 260 seconds]
<teepee>
one is fillet
<teepee>
I don't see a 3rd one
<KREYREN>
the fillets on the top and the bottom of the phone are different sizes
<KREYREN>
around display 1mm at the backglass 2mm
<teepee>
ah, I see
<KREYREN>
the round-anything library seems like it would be great if it could do 3D shapes.. it seems to do 2D and then extruding them or is that invalid concern? they seem to be able to do complex shapes with fillets using the library
* KREYREN
made the design in FreeCAD, but the project is far too complex for parametric CAD and needs to be more functional
* KREYREN
usually uses libfive and is using this to kinda benchmark which implementation to use for this project as he doesn't think that openscad integrates well with websites
<teepee>
I think that should be doable by a bit of extrusion
<KREYREN>
i want to make like a generative cases for various devices that would be created in a website so that e.g. you could open the website that would ask you what phone you have and what kind of case you have for it to then generate the STL to print on a 3D printer or have an integrated hub to request it being made by a 3rd party (all open-source)
<teepee>
should be pretty flexible with the parameters, just r1 < r2 is required or that would need some extra handling
<KREYREN>
So iirc you are making multiple circles and then using hull to project them together right
<KREYREN>
*iiuc
<teepee>
shape() is basically the profile of the thing
<teepee>
put another line !shape(); at the end and press F6
<teepee>
this shows the 2d profile it's basically the filleted part
<teepee>
!ring();
<teepee>
shows the ring that's then placed at the corners
ccox has joined #openscad
<KREYREN>
i see
<KREYREN>
thanks helpful ^^
<InPhase>
teepee's is pretty optimal, but you might want to drop the hull and do constructive segments if you plan on your cases having a wrap-around lip.
<InPhase>
With flexible filament phone cases, the part that wraps over the front can be pretty important. That would be easier to model up front at the rotate_extrude step, and then not wipe out with the hull.
<InPhase>
Like, start out making the whole inside profile, and then do 4 rotate extrudes, and 4 linear_extrudes.
<teepee>
yeah, simple shape, simple code :-)
<InPhase>
Yeah. :)
<teepee>
I guess the point is more that the usual approach from GUI cad often does not work, actually going all-in with CSG declaration needs a bit of step back and think differently but it can create much simpler and faster results
<InPhase>
KREYREN: The important lesson going to OpenSCAD from other approaches is often that you want to wedge what might seem like "add-on" model features to be considered later in the design process, way back toward the beginning steps of forming the model. This can make things go much easier.
<teepee>
first!
<InPhase>
:(
<KREYREN>
i plan around making a TPU version that will be wrap around and some that have hard plastic reinforcements atm
<InPhase>
TPU is the only way to go for phone cases! Physicist note: Don't buy or use hard cases! :)
<InPhase>
Metal egg cartons have never caught on for a reason.
<teepee>
unless you get an old exploding samsung phone
<teepee>
but better not getting one of those :)
<teepee>
same also true for cars as we have just seen
<KREYREN>
tbh i was considering metal case that screws together so that i can take the phone with me to swim, but they are kinda mess to deal with and i would at that point probably just make a custom smartphone that is rugged
<teepee>
aren't most new phones water tight already?
<InPhase>
teepee: Only when new.
<KREYREN>
teepee, splash resistent at best
<teepee>
:(
<InPhase>
teepee: Battery expansion is practically guaranteed with time, and phones in pockets are under mechanical strain that will compromise seals. Eventually all bets are off.
<KREYREN>
it's not difficult to make a phone that will last 50m deep underwater just none cares to make it as it would have like 4-6mm borders around the display afaik
<InPhase>
Yeah. They're just too thin to have lasting waterproofing.
<InPhase>
You can do it with a watch, but because more material, relatively speaking to the dimensions, goes into the shell.
<KREYREN>
probably wouldn't need to have these borders just sealed display aseembly that screws onto an o-ring technically
* KREYREN
has on his todo list to make custom sdm845 phone as he helps developing linux mainline for it and can interpret the DTS into gerbers
<InPhase>
KREYREN: Good. I want more people advancing the proper-linux phone market. I want one, but I want them to be mainstream ready so I don't have to mess with issues on my phone, which has become a critical device. :)
<KREYREN>
InPhase, OnePlus 6 and ShiftPhone is pretty stable these days for linux, also lot of old smartphones e.g. I have samsung galaxy S4 mini value edition and it runs linux really well
<KREYREN>
cost me like 2 EUR
<KREYREN>
also Nokia N900
<InPhase>
Apparently Framework has been teasing the release of a phone.
<KREYREN>
and i am porting xiaomi mi8 devices rn cuz they can be obtained for around 25 EUR and are similar to oneplus6 in design
<KREYREN>
it only needs a touch screen driver rn
<KREYREN>
and probably some more pain with registers to get power distribution to work without problems
<KREYREN>
InPhase, cool didn't know about framework
<InPhase>
teepee and I are both using laptops from them.
<teepee>
as long as they keep the notebooks coming
<KREYREN>
though i doubt it will do linux the mainline is not ready for anything beyond sdm845 and allwinner A64 rn
<KREYREN>
though big tech are porting linux drivers on massive scale rn
* KREYREN
uses OLIMEX Teres-1 and Lenovo X230 as dailies atm
<InPhase>
Framework has been big on hackability of their stuff, and on Linux support. Although nothing is available on phone plans. But given their customer base, if they build one, I'd imagine it being used with Linux.
<teepee>
I really want to stay with framework notebooks, ideally as company default at some point
<KREYREN>
i keep waiting for them to do coreboot for it to be interesting for me beyond that my bf has tongfang-style laptop with RTX4070 similar to those that system76 is selling
<InPhase>
teepee: I have no regrets yet, but it always takes time to see if I should get made at a manufacturer's stuff. :)
<InPhase>
s/get made/get mad/
<KREYREN>
which would kinda be my next upgrade if needed but i am kinda spoiled by nix to be able to do thin clients and have cloud gaming and remote compiling xD
* KREYREN
trolls people with it as the teres-1 has 4 core weak SoC that is heavily bottlenecked by the eMMC and that way he can do cyberpunk 2077 with heavy raytracing and have battery life of around 30 hours
<JordanBrown>
InPhase WRT hard cases... ISTM that you want a rubbery case if you're concerned about shocks, but a hard case if you're concerned about the actual point of impact.
<JordanBrown>
A rubbery case won't stop the assembly from flexing, whether globally or right around an impact, while a hard (enough) case might.
<KREYREN>
JordanBrown, point of impact doesn't seem to be a concern with FLEX 98A and thickness of 1.5mm as it seems to be able to absorb fall at terminal velocity without plasticity to the device
<KREYREN>
hard case kinda doesn't absorb the impact
<JordanBrown>
Right, hard case would transmit it directly.
<KREYREN>
yep..
<JordanBrown>
Perhaps spreading it a bit.
<KREYREN>
combo of hard + soft seems to be the best for protection for that reason atm
<JordanBrown>
But if the whole assembly is rigid, that might be OK.
<KREYREN>
most of the phones are kinda terrible in terms of rigidity
<KREYREN>
and xiaomi-ursa is 25 EUR phone with AMOLED display that costs 60 EUR to replace and likes to shatter on impact
<JordanBrown>
OTOH, if you put down a pebble, then a phone, then step on it, with a flex case it's toast and with a hard case it has a chance.
<KREYREN>
or soft case that has hard reinforcements to handle this scenario
<KREYREN>
that looks close to what i want to design for my phone atm
<KREYREN>
so that i can get rid of having to carry phone and a wallet since i have to carry big one to have goldbacks in it rn
<JordanBrown>
It's kind of unfortunate that the folio part is separate from the case part, because wireless charging doesn't make it through both of them. I have to pull the folio off.
<JordanBrown>
And the magnetic latching strap is kind of wrong - it's attached to the back, and so to open you must first push the strap to the right, and then open the front to the left; better would have been if it was attached to the front, so that you'd just continue the same motion.
<KREYREN>
my bf has like 120W charging that you put the USB-C into and it charges up to 70% in 5 min and i am soo envy of that rn
<JordanBrown>
But OTOH it's nice to remove the folio when you're trying to take pictures and it's getting in the way.
J24k94 has joined #openscad
J24k11 has quit [Ping timeout: 240 seconds]
GuestBWB has joined #openscad
<GuestBWB>
Hello. New to OpenSCAD. I modeled a hollow ellipsoid to 3D print. Was able to do this with the difference function between ellipsoids (see code below). To get a more exact model of the shape want, replicating an antique lamp shade, I want to draw a line using a cubic function (or similar), specify the thickness and then rotate around the
<GuestBWB>
axis. Since rotate_extrude is only around the Z axis, can I draw a line in the X-Z plane and rotate the line around the Z axis?
<GuestBWB>
Here is what I created for an initial proof-of-concept.
<GuestBWB>
$fn=100;
<GuestBWB>
difference()
<GuestBWB>
{
<GuestBWB>
difference()
<GuestBWB>
{
<GuestBWB>
resize([30, 7.5, 7.5])
<GuestBWB>
translate([7.5,0,0])
<GuestBWB>
sphere(r = 7.5);
<GuestBWB>
color("red",1.0)
<GuestBWB>
resize([30, 7.375, 7.375])
<GuestBWB>
translate([7.5,0,0]) //translate and add .125 inches at top of the bell (7.375+0.125)
<GuestBWB>
sphere(r = 7.375);
<GuestBWB>
}
<GuestBWB>
/ resize([30,30,30])
<GuestBWB>
translate([30,0,0])
<nihil>
...
<nihil>
use pastebin or something
<nihil>
and comments are //
<nihil>
not a single /
<teepee>
the first is eaten as irc command :)
<nihil>
ah
<nihil>
because he didn't magic
<JordanBrown>
GuestBWB rotate_extrude is only around the Z axis, true, but you can then arbitrarily rotate the result.
<GuestBWB>
Ah ... ok ... Let me see what I can do
<nihil>
// I can double
<nihil>
// because magic
<nihil>
though, if it were taken as the command, everything following it wouldn't have been displayed?
<nihil>
client would have just err'd on the command
<nihil>
and not sent to channel
<GuestBWB>
Here is the code, only one comment as shown in the line.
<GuestBWB>
$fn=100;
<GuestBWB>
difference()
<GuestBWB>
{
<GuestBWB>
difference()
<GuestBWB>
{
<GuestBWB>
resize([30, 7.5, 7.5])
<GuestBWB>
translate([7.5,0,0])
<GuestBWB>
sphere(r = 7.5);
<GuestBWB>
color("red",1.0)
<GuestBWB>
resize([30, 7.375, 7.375])
<GuestBWB>
translate([7.5,0,0]) //translate and add .125 inches at top of the bell (7.375+0.125)
<GuestBWB>
sphere(r = 7.375);
<GuestBWB>
}
<GuestBWB>
translate([30,0,0])
<GuestBWB>
cube([30,30,30], center = true);
<GuestBWB>
}
<GuestBWB>
Key question ... Can I draw a lin in the X - Z plane?
<JordanBrown>
I'm not quite following what you're trying to do, but again, you can rotate the result of your rotational extrusion.
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest62 has joined #openscad
<Guest62>
Hi. I just started a download of your Development release. It's only 29mb but has taken over 10 mins to download. Not a complaint as such, but is this normal? Are your servers swamped?
<teepee>
nope, I just tried, 2.5 seconds
<teepee>
and that was probably limited locally by my wifi ;-)
lastrodamo has joined #openscad
<teepee>
but I'm probably quite near to that server physically. who knows which sea cable got broken today?
<JordanBrown>
I didn't use a stopwatch, but it was a couple of seconds to California.
<Guest62>
Odd. I'm in Australia, but that doesn't usually make that much difference. I just ran a Speedtest and my download speed was pretty good. I might try again, just for fun.
<teepee>
maybe some odd routing. the datacenter is nuremberg and it's located at multiple backbone interconnects, like DE-CIX, so it *should* have all the bandwith there is
<Guest62>
Well, that took less than a second. Must have been sunspots or something. I'll just have to live with the mystery ;D Thanks.
Guest62 has quit [Quit: Client closed]
<JordanBrown>
Have fun. If you have any questions, ask here or on the mailing list.
<teepee>
in theory there's a data limit: "If the average network traffic of the last 24 hours exceeds 2 TB, a temporary throttling to 200 Mbit/s is applied. The throttling is lifted as soon as the condition no longer applies"
<teepee>
so even limited we should get maybe 20mb/s
<InPhase>
JordanBrown: Yes, but you'd need a mighty thick case to guard a phone against a pebble stomp appreciably better than the phone alone would fair. :)
<InPhase>
JordanBrown: Or you'd need a faraday-cage metal case for this.
<JordanBrown>
pebble stomp is a special case of "pointy thing impacts phone".
<InPhase>
JordanBrown: From my 6 years of observing college students, I became convinced that people were primarily just flinging them around out of their hands and surface-impacting them with severe drops.
<InPhase>
Like at epidemic levels.
<JordanBrown>
I think that matches the couple that my kids have killed.
<JordanBrown>
the crack pattern starting at the corner...
<JordanBrown>
anyhow, although I'm not completely sold on the merits of a purely squishy case, finding that my Otter Box is squishy on the edges largely sells me on squishiness being a component.
<InPhase>
All of my phones that went out, have died from battery capacity loss or battery swelling. No drop has ever damaged one of my phones, but I always do TPU and always get one with a lip sufficient to guard the screen. I don't even use screen protectors (which do nothing except against pocket sand).
<JordanBrown>
I've only had a modern-generation smart phone for ~18mo, and haven't killed it yet.
<JordanBrown>
before that was a succession of flip and candy-bar phones that got replaced when their batteries got weak or when they were just too incompatible with modern-er text messages.
<JordanBrown>
and before *that* was a Kyocera PalmOS flip phone. That one died from a creek dunking, and from VZ deciding not to allow them any more.
<InPhase>
I think I'm at 15 years of smartphones now.
<JordanBrown>
Two things kept me on flip phones:
<JordanBrown>
1) size
<JordanBrown>
2) screen protected when in pocket
<JordanBrown>
3) I replaced the battery when it got *down* to three or so days of typical use.
<InPhase>
I had a Motorola flip phone that I dropped while biking, and it got run over by cars multiple times before I recovered it. It was still fine, except for some scuff marks.
<JordanBrown>
Oh, and I do have a Kyocera swivel phone. It didn't survive a drop test.
<InPhase>
So flip phones were certainly more robust. :)
<JordanBrown>
Let me see if I can find the records of that drop test.
<InPhase>
I conducted a similar drop test with some sunglasses, but was not able to find them for post-test inspection.
<JordanBrown>
I think it was not the first time that their customer service had had to retrieve something off of that building.
<InPhase>
Plausible.
<JordanBrown>
They were nice enough to let me use their phone to tell my wife (at home) that my phone wouldn't be working.
<InPhase>
Good thing you're old enough to remember a phone number.
<JordanBrown>
yes
<JordanBrown>
Anyhow, I was dragged kicking and screaming into the smart phone era, mostly because of battery life.
<JordanBrown>
But (a) my previous phone came from the factory with crummy-for-a-dumbphone battery life, probably because it really ran Android, and (b) it started being unreliable at delivering text messages, and (c) they told me that I NEEDED to have a smart phone for the Scout Jamboree.
<JordanBrown>
(For that last...no, not really. They overstated the capabilities of their app and the need for it.)
<InPhase>
Yeah. Smart phones are a basic life expectation now that people have.
<JordanBrown>
Yeah. Still annoys me when on occasion I bump into something where I *must* have one.
<InPhase>
I need google authenticator just to do my job.
<JordanBrown>
I need Oracle Mobile Authenticator. I run the Windows version, so it's convenient right there on the same screen.
<JordanBrown>
But the local supermarket wants to do some sale/coupon things using a QR code and an app.
<InPhase>
Well that Oracle Mobile Authenticator is a very unpopular app...
<InPhase>
You don't often get 2.6 stars unless it's a scam or ad explosion or something.
<JordanBrown>
Probably. But it's what I'm required to use.
<JordanBrown>
It's neither a scam nor an ad explosion, but the Windows version isn't as reliable as it should be.
* InPhase
nods.
<InPhase>
I should probably get some sleep.
<JordanBrown>
I also don't know how usable it is for anything *other* than authenticating to Oracle's internal infrastructure.
<JordanBrown>
Yeah, well, it's bedtime here on the West Coast, and it's later there...
<JordanBrown>
One more thing on the smartphone thing... one thing that bugs me is that there's no reasonable answer for somebody like my mom, who can *barely* see to use a smartphone with a special big-UI app.
<JordanBrown>
She has no chance at all of using a smartphone with standard font sizes.
<InPhase>
We're getting close to speech to text that works reliably enough, and to internal LLM voice assistants that can actually function as a primary interface. This problem should be solved reasonably soon.
<JordanBrown>
Yes, once you can use that to drive the supermarket's app, or Uber, or ...
<JordanBrown>
(I use Siri all the time on my phone, and Alexa everywhere else.)
<JordanBrown>
I want Alexa to work well on my phone :-(