Geomview(1gv)
π Geomview(1gv) π
okay bestie, sit DOWN, because we're about to talk about Geomview β that's the 1gv manual, section 1, local games/geometry viewer energy, and she is iconic. β¨
π NAME π
Geomview β interactive geometry viewer. that's it, that's the whole name section, she's brief and she's confident π
π¦ SYNOPSIS π¦
geomview [-b r g b] [-c commandfile] [-wins #windows] [-noinit]
[-nopanels] [-noopengl] [-wpos xmin ymin xsize ysize]
[-wpos xsize,ysize[@xmin,ymin]] [-e external-module-name]
[-M[cg][sp] pipename] [-start external-module-name [arg ...] --]
[-run external-module-path [arg ...] --] [file ...]
likeβ¦ look at her. a whole runway of flags. π
πΈ DESCRIPTION πΈ
so Geomview is an interactive geometry viewer, written at the Geometry Center. she displays the objects in the files you hand her on the command line, and then she lets you view and manipulate them interactively. that's the vibe. that's the whole point. π«Ά
the present version β that's 1.7 β runs on Silicon Graphics Irises and on X Window System workstations. and listen, they genuinely want to hear about any problems you have using it; see below for how to contact them. they're not being fake about it. π₯Ί
now here's the part that lowkey changes your life: besides giving you interactive control over a whole world of objects via mouse and keyboard, Geomview has an interpreted language of commands for controlling almost every aspect of its display. she can execute files containing statements in that language, and she can communicate with other programs using it too. for more deets on the language, check geomview(5) β like, for example, the file man/cat5/geomview.5 in the geomview distribution. π
π TUTORIAL π
okay so real talk: this manual page is only a (very) terse reference manual for geomview. it is not the cozy explanation. for a gentler intro to the program and to the format of the data files she can read, go look at "overview" and "oogltour" in the "doc" directory of the geomview distribution β or better yet, the full manual: "geomview.tex" or "geomview.ps", also in the "doc" directory. π
and for the girlies who want to build: the source distribution also includes a tutorial for how to write external modules, in the "src/bin/example" directory. go off. π§
β¨ OPTIONS β¨
one bullet per flag, bestie, no skipping, we're doing all of them:
-bβ set the window background color to the givenr g bvalues. aesthetic first, always. π¨-cβ interpret the commands in commandfile, which may be-for standard input. the command language is described ingeomview(5). commands may also be supplied literally, like-c "(ui-panel main off)"; since they include parentheses, they must be quoted. (parens are shy, they need the quotes π₯Ί)-winsβ causes geomview to initially display #windows camera windows. windows on windows. very main character.-wposβ specifies the initial location and size of the first camera window. with-, you get prompted for window placement. interactive placement, we love to see it. πͺ-M objnameβ display (possibly dynamically changing) geometry (or commands) sent viatogeomview -g objname [geomview-shell-command]orgeomstuff objname file .... the data shows up as a geomview object named objname.
so what's actually happening under the hood? she listens to the named pipe /tmp/geomview/objname. you can get the same effect with these shell commands:
mkdir /tmp/geomview;
mknod /tmp/geomview/objname p
(assuming the directory and named pipe don't already exist, bestie β that part matters), and then executing the geomview command:
(geometry objname < /tmp/geomview/objname)
-M[cg][ps[un|in|in6]] PIPENAME|TCPPORTβ okay this one's the long one, stay with me. π
the -M option accepts modifiers:
- a
'g'suffix expects geometry data (that's the default), - a
'c'suffix expects GCL commands, - a
'p'implies the connection should use a named pipe (the default on everything except on the NeXT), - while
's'implies using a UNIX-domain socket (the default on the NeXT).
since version 1.9 of Geomview, internet domain sockets are also supported:
- use
'sin'to make Geomview listen on the IPv4 port given by TCPPORT, - or use
'sin6'to make Geomview listen on an IPv6 port (also as specified by TCPPORT). 'sun'is a synonym for's', i.e. use the Unix domain socket with the name PIPENAME.
and if PIPENAME starts with a slash (/), then it's assumed to be an absolute pathname β otherwise the named pipe or socket is created below ${TMPDIR}/geomview/. ποΈ
so like, to make it concrete: -Mcs fred selects reading commands from the UNIX-domain socket named /tmp/geomview/fred, and -Mcsin 40000 selects reading commands from the IPv4 port '40000'. slay. π₯
-noopenglβ disable the use of OpenGL for (possibly) hardware accelerated rendering, even if the Geomview binary has support for OpenGL compiled in. this also disables the support for transparency and and textures. (yes, the double "and and" is in the original, we keep the lore exactly as written π«‘)-nopanelsβ start up displaying no panels, only graphics windows. panels may be invoked later as usual with the"Px"keyboard shortcuts or the"(ui-panel ...)"command. minimalism era. π§-noinitβ read no initialization files. by default, geomview reads the system-wide.geomviewfile, followed by those in$HOME/.geomviewand./.geomview. (so if your setup is acting weird, it's probably one of those three. iykyk π)-e modulenameβ start an external module. modulename is the name associated with the module, appearing in the main panel's Applications browser, as defined by theemodule-definecommand (seegeomview(5)for details).-start modulename arguments ... --β like-ebut it lets you pass arguments to the external module. the--signals the end of the argument list; the--may be omitted if it would be the last argument on the geomview command line.-run shell-command arguments ...β like-startbut takes the pathname of the executable of the external module instead of the module's name. πβοΈ
π GEOMETRY FILE FORMATS π
the format of the files read by geomview is described in oogl(5). type man 5 oogl, or see the file man/cat5/oogl.5 in the geomview distribution, for details. π
note to users of MinneView (the precursor to geomview): geomview can read MinneView files, but MinneView cannot read all geomview files. it's giving one-way street, bestie. π
π STARTUP FILES π
immediately upon starting up, geomview reads and executes the commands in the system-wide .geomview file in the "data" subdirectory of the geomview directory. π
then, if there is a file named .geomview in the current directory, she executes the commands in that file. then she checks for one in the user's home directory, and executes it if found.
the startup file of an individual user overrides the systemwide defaults, since later commands take precedence over earlier ones. so your personal config ate, and the system defaults didn't. π
π¦ EXTERNAL MODULES π¦
Geomview has the ability to interact via her command language with other programs, called "external modules". many such modules have been written and they appear in the "Application" browser in the main geomview panel.
to invoke a module, you click the mouse on the module's entry in this browser. this starts the module and adds an additional entry to the browser, beginning with a number in square brackets β like [1] Crayola β which represents the running instance of that module. ποΈ
you can terminate the module by clicking on the numbered entry. modules are documented separately from geomview, so see the manual page for each module for details. periodt. π
π INSTALLING AN EXTERNAL MODULE π
Geomview looks for external modules in a special directory for modules. in the geomview distribution tree, that's the "bin/$MACHTYPE" subdirectory. ποΈ
a module consists of two files:
- the executable program, and
- a
"module init file", whose name is.geomview-followed by the module name.
the module init file tells geomview how to run that program.
be sure to always keep these two files together; geomview needs both of them in order to run the module. π―βοΈ
to install a new module, simply put the module's executable file and its init file in your geomview's module directory. the next time you run geomview, she'll know about that module. no cap. β¨
geomview can actually look for modules in a list of directories; by default only the "bin/$MACHTYPE" directory is on this list. see the set-emodule-path command in geomview(5) for details.
and again for the builders: there is a tutorial for how to write external modules in the "src/bin/example" directory. π§
π EXTERNAL MODULE INIT FILES π
an external module init file is the file that tells geomview how to run that module. its name must be .geomview- followed by the name of the module, e.g. .geomview-foo. π·οΈ
it should contain geomview commands; typically it will contain a single emodule-define command which enters the module into geomview's application browser:
(emodule-define "Foo" "foo")
the first string is the name that appears in the browser. the second string is the command to invoke the module. it may contain arguments; in fact, it can be an arbitrary shell command. go feral. π
β¨οΈ KEYBOARD SHORTCUTS β¨οΈ
okay bestie this is the part where geomview becomes a whole vibe π
β so many operations are available straight from the keyboard, no clicking required. Hit the "?" button on the main panel, or just type "?" with the cursor in any window, and geomview will print a message on standard output listing all the keyboard shortcuts. iconic behavior tbh.
Keyboard commands apply while the cursor is in any graphics window and most control panels. Most commands allow one of the following selection prefixes (and if you don't provide one, the command applies to the current object, which is very "default settings" of it):
g world geom g# #'th geom g* All geoms
c current camera c# #'th camera c* All cameras
Many allow a numeric prefix: if you don't give one, they toggle or reset the current value. π
π¨ Appearance:
Draw: Shading: Other:
af Faces 0as Constant av eVert normals: always face viewer
ae Edges 1as Flat #aw Line Width (pixels)
an Normals 2as Smooth #ac edges Closer than faces(try 5-100)
ab Bounding Boxes 3as Smooth, non-lighted al Shade lines
aV Vectors aT allow transparency at Texture-mapping
Color: aC allow concave polygons
Cf Ce Cn Cb CB face/edge/normal/bbox/backgnd
π Motions: / π Viewing:
Motions: Viewing:
r rotate [ Leftmouse=X-Y plane, 0vp Orthographic view
t translate Middle=Z axis, 1vp Perspective view
z zoom FOV Shift=slow motion, vd Draw other views' cameras
f fly in r/t modes. ] #vv field of View
o orbit [Left=steer, Middle=speed ] #vn near clip distance
s scale #vf far clip distance
w/W recenter/all v+ add new camera
h/H halt/halt all vx cursor on/off
@ select center of motion (e.g. g3@) vb backfacing poly cull on/off
#vl focal length
L Look At object v~ Software shading on/off
πͺ show Panel:
Pm Pa Pl Po main/appearance/lighting/obscure
Pt Pc PC Pf tools/cameras/Commands/file-browser
Ps P- saving/read commands from tty
π‘ Lights:
ls le Show lights / Edit Lights
π Metric:
me mh ms Euclidean Hyperbolic Spherical
π§ Model:
mv mp mc Virtual Projective Conformal
β¨ Other:
N normalization < Pf load geom/command file
0N none > Ps save something to file ui motion has inertia
1N each TV NTSC mode toggle uc constrained (X/Y) motion
2N all uo motion in Own coord system
Rightmouse-doubleclick pick as current target object
Shift-Rightmouse pick interest (center) point
π¬ Renderman:
RR send RIB output to <fileprefix>NNN.rib (default fileprefix == "geom")
RC Emulate lines using cylinders (default)
RP Emulate lines using polygons
Ra choose ASCII RIB format (default)
Rb choose BINARY RIB format
Rt choose Display token to specify .tiff file (default)
Rf choose Display token to specify framebuffer
Rs Simulate background color with Polygon (default)
Rx No background simulation - fully transparent (alpha) background
π NOTES π
The "geomview" command is actually a shell script π«Ά β it sets various environment variables that tell geomview about your local setup, and then it invokes the geomview executable program "gvx" (or "gvx.OGL").
π¨ bestie DO NOT run"gvx"by itself. always, always invoke geomview with the"geomview"shell script. that's the whole point. periodt.
π SEE ALSO π
oogl(5)β OOGL geometric file formats and conventionsgeomview(5)β geomview command language reference
π FILES π
data/.geomviewβ default initialization file in geomview command languagedata/geomβ sample data files
π ENVIRONMENT π
The ``geomview'' shell script sets these internally by default β but if you set them before invoking geomview, the values you set will be used instead of the built-in defaults. you're the main character, you get to decide π
GEOMVIEW_GVXβ geomview executableGEOMVIEW_DATA_DIRβ default directory for data filesGEOMVIEW_LOAD_PATHβ colon-separated search path for data filesGEOMVIEW_EMODULE_DIRβ default directory for external emodulesGEOMVIEW_EMODULE_PATHβ colon-separated search path for external modulesGEOMVIEW_SYSTEM_INITFILEβ system-wide GCL initialization scriptGEOMDATAβ top directory of the default data tree, used by some modulesGEOMVIEW_DOC_DIRβ path to the user manualWEBBROWSERβ executable for viewing the HTML version of the manual when invoking the ``Manual (HTML)'' menu itemPDFVIEWERβ executable for viewing the PDF version of the manual when invoking the ``Manual (PDF)'' menu item
π AUTHORS π
look at this lineup, absolute legends the whole way down:
Stuart Levy Tamara Munzner Mark Phillips
Celeste Fowler Nathaniel Thurston
Daniel Krech Scott Wisdom
Daeron Meyer Timothy Rowley
The National Science and Technology Research Center for
Computation and Visualization of Geometric Structures
(The Geometry Center)
University of Minnesota
www.geomview.org
π BUGS π
- Sometimes core dumps on bad input files. π not the crash, anything but the crash
- Zoom and scale have no inertia. fr fr, they just don't
- Virtual spherical mode doesn't work on VGXes. π
and that's a wrap on the geomview(1gv) page bestie!! π¦ this was the Geometry Center's work, dated December 10, 1996, and the manpage source/version line is just that Geometry Center / Geomview(1gv) footer with that date on it. slay, go make some shapes β¨
π¦ where this page comes from
- debian bookworm: geomview 1.9.5-4+b1
- debian trixie: geomview 1.9.5-5
- fedora 43: geomview 1.9.5-33.20190630git1d6759e.fc43 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- fedora 44: geomview 1.9.5-35.20190630git1d6759e.fc44 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- ubuntu jammy: geomview 1.9.5-3build1
- ubuntu noble: geomview 1.9.5-4.1build2
- ubuntu questing: geomview 1.9.5-6
- ubuntu resolute: geomview 1.9.5-6build1
- ubuntu stonking: geomview 1.9.5-6build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms