Also, apologies for the lack of commenting, but it's short at least.).Īs it happens, I'm discovering tcl to be quite comfortably lispy - they're even working on getting continuations, which not even all lisps have. (the math doesn't take into account several things it should, but it's not done yet either. All that's needed to use it is to source the file in mged (or from another file run to mged), and run something likeįor a rotor with an angle at the outer edge of 10 degrees, an angle at the inner edge of the blades of -45 degrees, a radius of 10 units (whichever the rest of the program is using), a blade depth of 3 units, and five blades. Using mged already is programming the part I've attached the preliminary source for the rotor part of the 'turbine' command I'm working on ('generate a turbine fitted to the head and flow rate of this stream'). I suppose what I'm really not clear on is what this gets you it feels like python for the sake of having python syntax to me. If you want to improve the code, the live repo is in svn at: It's also attached as a tarball to this post. I suppose this belongs in /tags, but I didn't feel comfortable writing outside my sandbox. It's tagged in svn as brlcad-0.2 at/users/vasile/tags/python_brlcad-0.2. There's even a simple Makefile if you're so inclined (you'll have to edit the path in it): So here it is, along with a simple example that shows how this might be used to easily build up parts from parts from parts. All the primitive shapes are there, and you can do the usual CSG stuff. You can pull these commands into brlcad using the 'source' command. You feed it python statements and it returns objects that output brlcad commands. If you don't like their interface, you can describe your object in Python. They're working on the interface, I'm told, but it's usable right now. It's also still under active development under a free license. ![]() It's almost 20 years old and has had extensive use by American military folks developing entire mechanical systems. All the power is there that you could need.
0 Comments
Leave a Reply. |