Scripting MGED with Perl

Scripting MGED with Perl

As scriptable geometry is a topic that often comes up from power users looking to get the most out of BRL-CAD's modeling capabilities, user Bryan Bishop wrote a script in Perl to create geometry via MGED. Bryan shows in his script how to procedurally generate a spiraling pattern of hollowed-out boxes.

Depending on your modeling goals, there's lots of ways this script could be changed and improved upon, but it's a great example for how you can put your own language of choice to work for you. For more details, see the wiki write-up at http://brlcad.org/wiki/Spiral.