GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
G-STL(1) User Commands G-STL(1)

g-stl - Stereolithography Translator (BRL-CAD to STL)

g-stl [-o output_file] [-m output_directory] [-b] [-i] [-8] [-D calculation_tolerance] [-a absolute_tol] [-r relative_tol] [-n normal_tol] [-xX level] [-v] database.g object(s)...

g-stl converts the specified object(s) from a BRL-CAD database.g file to the stereolithography file format.

The following options are recognized.

-o PATH

Specify output file name (default is stdout).

-m DIR

Specify a directory for output files. Each region converted is written to a separate file. File names are constructed from the full path names of each region (the path from the specified object to the region). Any "/" characters in the path name are replaced by "@" characters and "." and white space are replaced by "_" characters. If the -m option is not specified, all regions are written to the same file. The -o and -m options are mutually exclusive.

-b

Write output as a binary STL file. The default is ASCII. In the case of ASCII output, the region name is specified on the "solid" line of the STL file. In the case of binary output, all the regions are output as a single STL part.

-i

Use inches as the output format (the default is mm).

-8

Facetize using the marching cubes algorithm.

-D#

Specify a calculational distance tolerance (mm). Any two vertices that are less than this distance apart will be treated as the same vertex.

-a#

Specify the absolute tesselation tolerance.

-r#

Specify the relative tesselation tolerance.

-n#

Specify the surface-normal tesselation tolerance.

-x#

Specify an RT debug flag.

-X#

Specify an NMG debug flag.

-v

Enable verbose output.

$ g-stl -o sample.stl sample.g sample_object

Error messages are intended to be self-explanatory.

BRL-CAD Team

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

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org
06/07/2022 BRL-CAD

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.