User:Nmz787-brlcad
From BRL-CAD
Revision as of 04:48, 19 January 2015 by Nmz787-brlcad (talk | contribs) (I was editing this last night, but then my browser crashed and I lost the preview mediawiki-text :()
Installation
From SVN
svn checkout svn://svn.code.sf.net/p/brlcad/code/brlcad/trunk brlcad-svn-trunk
cd brlcad-svn-trunk
cmake ../ -DCMAKE_BUILD_TYPE=Debug -DBRLCAD_BUNDLED_LIBS=Bundled
Ubuntu
sudo apt-get install brlcad
Getting Started
- Start mged from the command prompt, and create a new file for storing CAD design data (BRL-CAD calls these files geometry databases and uses the .g file extension by default)
mged your_desired_filename_here.g
Radio example
- The following lines of code will produce something that looks like a walkie-talkie style radio.
- It uses BRL-CAD's Solid Primitive Shapes
- At the mged interactive command interpreter window, type the following:
in body.s rpp 0 16 0 32 0 48
in btn.s rec 8 30 36 0 3 0 4 0 0 0 0 2
in btn2.s ell1 8 33 36 4 0 0 2
in spkr.s tor 16 16 16 1 0 0 12 1
in ant.s rcc 2 2 46 0 0 48 1
in knob.s rcc 4 4 40 8 0 0 5
- Pasting or typing those lines should look like this:
- Press enter if you haven't already
- If you don't see a window with an image open up, click mged's Tools menu, then Graphics Window
- Pressing the keyboard CTRL button along with the left mouse-button will pan around the displayed image
- Pressing the keyboard SHIFT button along with the left mouse-button will move the view away from or toward the center (where the cartesian plane X,Y,Z are 0,0,0)