Brlcad/How to mged/draw a cuboid

From Wikibooks, open books for an open world
Jump to: navigation, search

The following program demonstrates how to draw a simple 2x3x4 cuboid:

opendb cuboid.g y            # Create a database to hold our shapes
units cm                     # Set the unit of measure
in cuboid.s rpp 0 2 0 3 0 4  # Create a 2 x 3 x 4 cuboid named cuboid.s