Results 11 to 16 of 16
Thread: Twisted box
-
10-21-2020, 10:04 AM #11
When I first started to code in 1974, the primitive compilers that I used then required you to put modules first so that the compiler would see them before seeing any reference to them. As compilers got more sophisticated and did multiple passes, you could put modules anywhere. That was a big improvement. Programmers were no longer limited by the limitations of the compiler. It never made sense to me to put modules first. I always wanted to see the code in execution order, i.e., the first code you see in the source code should be first code to be executed by the computer. I was happy that putting subroutines after the main routine was the standard at the software company where I worked for most of my career.
-
10-21-2020, 10:38 AM #12
- Join Date
- Jun 2014
- Posts
- 892
I thought one had to create the modules first, otherwise the calling code would not "see" it.
-
10-22-2020, 10:03 AM #13
Last edited by jamcultur; 10-22-2020 at 10:10 AM.
-
10-24-2020, 10:05 AM #14
yeah figured it was aprogrammer thing.
So my ongoing openscad issue - how to make inported stl's actually work in a full render.
I used to load stls into tinkercad and export them back to my computer - and any stl you did that to would work 100% in openscad.
But tinkercad will no longer import stls.
And even stls rendered by openscad - when re-imported do not work.
Was just going to change the box so one half had a full cylinder and the other half was just arms, and fiddle the sizes slightly, so it doesn't require all the fine filing to get a smooth open and close.
But will it do an f6 render ? will it buggery !
no issue with f5 - but then there rarely is.
So do you know of anything I can do to get openscad to actually work with imported stls.
I've tried 'repairing' in simplify3d and exporting as both .bin and .ascii files.
But they don't even show up in openscad at all.
It's very bloody frustrating and I'm a man who doesn't get frustrated easily.
-
10-24-2020, 10:17 AM #15
- Join Date
- Jun 2014
- Posts
- 892
"I used to load stls into tinkercad and export them back to my computer - and any stl you did that to would work 100% in openscad.
But tinkercad will no longer import stls."
I just checked and was able to easily import an STL into Tinkercad. I did just that last week to modify a Thingiverse file, with zero problems. I'm aware Fusion 360 changed some features on the free license, but tinkercad did its thing for me.
-
10-24-2020, 11:21 AM #16
Yeah, I used to be able to import and modify STLs in OpenSCAD, but it doesn't seem to work anymore. It is very frustrating. In any case, the code I uploaded to this forum is a simplified excerpt of the code I used to generate my STL that was just meant to demonstrate some techniques. I don't know whether an STL generated from it would make a working box.
It seemed like a fun challenge to make a box from two identical pieces. I was more concerned with how well it looked and worked than whether it would be useful, although I suppose it could be used as a cigarette box. It was easy to add an option to my code to specify how tall the inner cylinder should be. I'm printing one now with a full-height inner cylinder. If it works, and if Thingiverse cooperates, I'll post the STLs in a day or two.
Ender 3v2 poor printing quality
10-28-2024, 09:08 AM in Tips, Tricks and Tech Help