First Success

21 10 2008

Check this out. A truncated dodecahedral Polywell rendered in CAD.

I created this using ruby to pass draw instructions to mged (the main command line tool for BRL-CAD):

require 'matrix'
phi = (1+Math.sqrt(5))/2
icosahedron = Matrix[
[0, +1, +phi],
[0, +1, -phi],
[0, -1, +phi],
[0, -1, -phi],
[+1, +phi, 0],
[+1, -phi, 0],
[-1, +phi, 0],
[-1, -phi, 0],
[+phi, 0, +1],
[+phi, 0, -1],
[-phi, 0, +1],
[-phi, 0, -1]
]

icosahedron.row_vectors().each_with_index do |v,index|
`/usr/brlcad/bin/mged -f -c test3.g 'in torus#{index}.s tor #{v[0]} #{v[1]} #{v[2]} #{v[0]} #{v[1]} #{v[2]} 1.0 0.125'`
end

This basically iterates through the vertices of the icosahedron, and draws a torus normal to the origin. Now we are tantalizingly close to having a CAD file we can render in metal.





Software

21 10 2008

First off, I’m all about open source software. Free, unencumbered, agile, fast.

For CAD I’m using BRL-CAD which is based on constructive solid geometry

For glue code I’ll use Ruby or Python. I know ruby I don’t know python.

SAGE for a mathematics package.

I havn’t looked closely at this yet, but here is a list of robots software packages

My laptop is a mac, I use linux on the server side, and will likely use EC2 for cloud computing.








Follow

Get every new post delivered to your Inbox.

Join 440 other followers