Difference between revisions of "Tutorial/Blender to CAD"
Toshibarve (talk | contribs) |
Toshibarve (talk | contribs) |
||
Line 45: | Line 45: | ||
{| border="0" | {| border="0" | ||
|- | |- | ||
− | |[[Image:MGED_7.22_Step_16_-1.jpg|center|thumb| | + | |[[Image:MGED_7.22_Step_16_-1.jpg|center|thumb|800px|Command Window First command]]||[[Image:Fullscreen_capture_Step_16_-1.jpg|center|thumb|575px|Graphics Window First command]] |
|} | |} | ||
Line 51: | Line 51: | ||
{| border="0" | {| border="0" | ||
|- | |- | ||
− | |[[Image:Fullscreen_capture_Step_16_-2.jpg|center|thumb| | + | |[[Image:Fullscreen_capture_Step_16_-2.jpg|center|thumb|800px|Commands Window Second Command]]||[[Image:Fullscreen_capture_Step_16_-2_-2.jpg|center|thumb|450px|Graphics Window Seccond command]] |
|} | |} | ||
Line 57: | Line 57: | ||
{| border="0" | {| border="0" | ||
|- | |- | ||
− | |[[Image:Fullscreen_capture_Step_16_-3.jpg|center|thumb| | + | |[[Image:Fullscreen_capture_Step_16_-3.jpg|center|thumb|800px|Commands Window Third Command]]||[[Image:MGED_7.22_Step_16_-3.jpg|center|thumb|450px|Graphics Window Third command]] |
|} | |} | ||
Line 63: | Line 63: | ||
− | With that final rendering your import is complete! <br>[[Image:MGED_7.22.0_Graphics_Window_Step_16_-5.jpg|center|thumb| | + | With that final rendering your import is complete! <br>[[Image:MGED_7.22.0_Graphics_Window_Step_16_-5.jpg|center|thumb|500px|Complete]] |
Revision as of 18:34, 10 January 2013
1. Open Blender
2.Use the scale manipulator to flatten and expand the cube so it looks like a tabletop.
3.Go to the Add menu or use the shortcut Shift+A. Add a cube.
4.Use the scale manipulator to expand and flatten this cube so it looks like a table leg. Then duplicate this table leg 3 times.
5.Move the legs of the table so it represents a table.
6.Select all the legs and the tabletop, and then click joins on the left side of the window under Object.
7.Go to File on the top left corner and select export. Under the export select obj.
8.You will get an export window. Name your file test (optional).
9.Once you have named your file click on the Export OBJ button, which can be found in the top right corner, to export your blender file.
10.Go to the BRL-CAD bin directory and give the command to turn you obj file into a .g file. This command exports the obj-formatted file to a .g file. The syntax of the obj-g command is
>obj-g input.obj output.g
Don’t forget to enter a path for your files. To see all the uses of the obj-g command just enter “obj-g.”
11.Open mged. You will see two windows, a command window that is white and a graphics window that is black.
12.Select File and click open. Open you .g file that you just made.
13.Then click on Tools. Open Geometry Browser under tools. Double click on the top object to display it. Your graphics window should display your upside down table.
14.Click on View. Select “az35,el25”
15.Click on Tools once again. Select the Raytrace Control Panel. Hit the raytrace button.
Once you have Raytraced, you should have an image the looks like this:
16.Do you remember what the table looked like when we were done with it in Blender? It was upside down and now it’s on its side. Rotating the table reorients it correct way. To reorient your table the right way, enter these commands in the command window:
sed default.1.1.b.c.s
rot –90 0 0
accept
Then Raytrace the table once again by going to the Tools menu.
With that final rendering your import is complete!