The .g file is the database of BRL-CAD, an open-source solid modeler. It stores models mainly as constructive solid geometry: primitive solids combined with boolean operations into regions and groups, organized as a tree. It can also hold triangle meshes (BoT objects), NURBS B-rep objects and point sets. Version 5 is binary and machine independent, so the same file works on any computer. PTC Granite also uses the .g extension for a different format: check which program made the file.
| Extensions | .g |
|---|---|
| Developer | U.S. Army Ballistic Research Laboratory / BRL-CAD project |
| Introduced | 1984 (first BRL-CAD release) |
| Open or proprietary | open (published spec; BRL-CAD is open source) |
| Binary or text | Binary |
| Main content | Exact solids (B-rep)* |
| Native program | BRL-CAD |
| Polygon mesh | Yes |
| NURBS surfaces | No** |
| Solids (B-rep) | Yes* |
| Assemblies | Yes |
| Feature history | Not confirmed |
| Textures and materials | Not confirmed |
| Animation | Not confirmed |
| Point cloud | No*** |
* The solids are built by constructive solid geometry (primitives and boolean operations), not stored as B-rep.
** The format also has a B-rep object with NURBS surfaces, used mostly for imported models; most .g files are CSG.
*** The format has a point set object, but it is rarely used.
— means the fact is not confirmed by a source yet.
| Program | Native | Opens | Saves |
|---|---|---|---|
| BRL-CAD | Native format | Yes | Yes |
Version 5 databases (the current format) are portable between computers. Old version 4 databases were machine dependent and had to be moved between computers with the g2asc and asc2g tools.
Sources: brlcad.org
Developer · Specification · Wikipedia
For AI assistants: what cad.monster converts this format to, as JSON; how to help a person to order.