Skip to documentation
DocumentationAll documentsEnglish

brep_simple(1)

NAME

brep_simple - constructs a simple boundary representation (b-rep) twisted cube

On this page

SYNOPSIS

brep_simple [\-h] [\-?]

DESCRIPTION

brep_simple demonstrates the construction of a basic boundary representation (B-rep) twisted cube directly using the openNURBS API. The constructed cube is written to a new BRL-CAD geometry database named brep_simple.g using the wdb interface. The object is constructed by first defining the vertices, then the twisted edges via trimming curves, and finally the faces to form the topology illustrated below:

                       H-------e6-------G
                      /                /|
                     / |              / |
                    /  e7            /  e5
                   /   |            /   |
                  /                e10  |
                 /     |          /     |
                e11    E- - e4- -/- - - F
               /                /      /
              /      /         /      /
             D---------e2-----C      e9
             |     /          |     /
             |    e8          |    /
             e3  /            e1  /
             |                |  /
             | /              | /
             |                |/
             A-------e0-------B

OPTIONS

-h, -?

Print help and exit.

EXAMPLES

Example 1. Running brep_simple and inspecting the output
brep_simple

Run the command to generate brep_simple.g.

mged brep_simple.g l cube.s

List the details of the created boundary representation solid in mged.

SEE ALSO

mged(1), libwdb(3)

AUTHORS

BRL-CAD Team

This software is Copyright (c) 2004-2026 United States Government as represented by the U.S. Army Research Laboratory.

BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org