Re: Hello

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Hello

FranTaylor
On 2/10/10, Fran Taylor <[hidden email]> wrote:

> I've just discovered and downloaded openscad and it is very cool!
>
> I have written some openscad code to generate screw threads.  At first
> I did not think it was possible but with some tricky math I got it to
> work.  As I learn more about openscad I want to make a virtual screw
> and nut catalog: "give me a 1/4-20 x 1 3/8 hex head bolt" and stuff
> like that.
>
> Bolts and nuts are clearly just novelties considering their
> availability at the hardware store, but the ability to build things
> with studs and threaded holes would be nice.
>
> I am working on a little paper about how to extrude screw threads with
> openscad, I was wondering if perhaps you would like to host it.  So
> far its a few rambling paragraphs and a couple of images.
>
> I must admit I am more than a little green with openscad.    There are
> things that I could not figure out how to do, so I wrote a little java
> program that does the work and generates an openscad program.
> Hopefully someday I can figure out how to do it directly in openscad.
>
> Anyway so here is what I want to do that I could not figure out how: I
> want to dynamically calculate the vertex positions of a polygon.  I am
> sure it is possible but between the docs and the examples I could not
> figure it out.  All I could find is an example with literal values, so
> I borrowed that.
>
> I saw people talking about adding font support and I have a great
> suggestion for you.  There is a package called "Open Inventor" and it
> has a nice library for creating 3-D font objects.  It's very mature
> code and it works well for me.  I'm sure it can be easily hacked into
> openscad.
>

Reply | Threaded
Open this post in threaded view
|

Re: Hello

kintel
Administrator
On Feb 10, 2010, at 08:40 , Fran Taylor wrote:

>> As I learn more about openscad I want to make a virtual screw
>> and nut catalog: "give me a 1/4-20 x 1 3/8 hex head bolt" and stuff
>> like that.

Yes! I've been thinking about the same, but you're clearly way ahead  
of me.
If you provide metric nuts and bolts as well, it would be awesome. We  
might also want to ship your library with OpenSCAD if it turns out  
well and you permit it.

>> Anyway so here is what I want to do that I could not figure out  
>> how: I
>> want to dynamically calculate the vertex positions of a polygon.

Since OpenSCAD doesn't really provide a full programming language  
(e.g. iteratively building an array is not allowed), your approach is  
probably the most reasonable atm.

>> I saw people talking about adding font support and I have a great
>> suggestion for you.  There is a package called "Open Inventor" and it
>> has a nice library for creating 3-D font objects.

Talking about Open Inventor, I've been considering integrating Coin3D  
into OpenSCAD. It has potential for making the rendering code a bit  
cleaner. It is, however, a pretty large dependency to drag in. In  
addition, I fear it will be a little hassle making OpenCSG work well  
with Coin3D. 3D font support might be the tipping point for dragging  
in another external library though, so let's see..

~/= Marius

--
We are Elektropeople for a better living.