G-PLY(1)
π G-PLY(1) β the BRL-CAD one, bestie π
okay so real talk, this is the g-ply girlie from BRL-CAD, and she's here to make your geometry go poof into a Stanford PLY file β¨
πΈ NAME πΈ
g-ply β convert BRL-CAD geometry to a Stanford PLY file π
π¦ SYNOPSIS π¦
g-ply [-v] [-s] [-t type] [-a abs_tol] [-r rel_tol] [-n norm_tol] [-D dist_tol] [-x rt_debug] [-X nmg_debug] -o output.ply database.g object [object ...]
β¨ DESCRIPTION β¨
so g-ply takes the object(s) you listed out of a BRL-CAD database.g and converts them into a Stanford PLY (Polygon File Format) geometry file β the name of which you give it with -o, no cap π
every object gets tessellated into a faceted mesh first, by way of the NMG booleans, before anything gets written. so basically any solid, region, or combination that can be evaluated down to a triangle mesh is fair game for exporting π«Ά
the output can be ASCII PLY or binary PLY β your call, bestie β and by default all the objects you asked for get merged into one single file. iconic behavior honestly π₯
π§ OPTIONS π§
-ooutput.ply β the name of the PLY file to write. this one is required, so like, don't forget it π when-sis given, this name gets appended as a suffix to each per-object file, and that file is named objectoutput.ply.-sβ write a separate PLY file for each object instead of merging all the objects into a single file. one file per bestie, we love boundaries π-ttype β pick the PLY encoding. valid values areascfor ASCII,lefor binary little-endian, andbefor binary big-endian. choose your fighter β-aabs_tol β absolute tessellation tolerance in millimeters (that's the maximum chord distance between the true surface and a facet edge). setting this one clears the relative tolerance. default is0.0(disabled).-rrel_tol β relative tessellation tolerance, expressed as a fraction of the bounding-box size of the object. default is0.01.-nnorm_tol β surface normal tessellation tolerance, i.e. the maximum angle in degrees between facet normals. setting this clears the relative tolerance. default is0.0(disabled).-Ddist_tol β calculational distance tolerance in millimeters, used when deciding whether two vertices are coincident. default is0.0005.-xrt_debug β set the librt debug flag to the given hexadecimal value.-Xnmg_debug β set the libnmg debug flag to the given hexadecimal value.-vβ enable verbose output during conversion. she will tell you everything π-h,-?β print the usage message and exit. bye bestie π
π EXAMPLES π
π Example 1. Export a single ASCII PLY for downstream tools
g-ply -t asc -a 0.5 -o widget.ply widget.g body bracket
this tessellates the body and bracket objects from widget.g with a 0.5 mm absolute tolerance, merging them into one human-readable ASCII PLY file that you can inspect or import into mesh editors and 3D printing slicers. literally the whole pipeline, sorted β¨
π Example 2. Write one binary mesh per object
g-ply -s -t le -r 0.005 -o parts.ply assembly.g part1 part2 part3
this produces a compact little-endian binary PLY for each of part1, part2, and part3 using a tighter relative tolerance, keeping the individual components in separate files for per-part processing. main character energy per file π
π«Ά SEE ALSO π«Ά
brlcad(1), ply-g(1), g-stl(1), g-obj(1), mged(1)
π AUTHOR π
BRL-CAD Team π§
π COPYRIGHT π
This software is Copyright (c) 1989-2026 by the United States Government as represented by U.S. Army Research Laboratory.
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org β pls be nice, they're doing their best π
ngl if something's broken, that email is the move. don't suffer in silence, bestie π
k that's the whole page!! this was G-PLY(1) from BRL-CAD β go forth and tessellate, ily, bye π π
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms