gmk_m2(1)
π gmk_m2, gmk_m3 β bestie edition π
okay so welcome to the Scotch user's manual, specifically the page for gmk_m2 (and its 3D sibling gmk_m3) π these two are literally the grid-making girlies and they're about to hand you a source graph file like it's nothing. no cap.
β¨ NAME β¨
gmk_m2, gmk_m3 β create 2D and 3D grid source graphs πΈ
π¦ SYNOPSIS π¦
gmk_m2 [options] [-bbval] [-gcfile] [-t] [-y] dimX dimY [ofile]
gmk_m3 [options] [-bbval] [-gcfile] [-t] [-y] dimX dimY dimZ [ofile]
π DESCRIPTION π
So the gmk_* programs create source graph files for some common, regular topologies. that's the whole vibe. regular, predictable, iconic. π
gmk_m2 creates a 2D regular grid graph of dimX times dimY vertices, such that vertex (i,j) is connected to vertices (i,j-1), (i-1,j), (i+1,j) and (i,j+1), if they exist. okay so like, basic 4-neighbor behavior, she's giving grid, she's giving structure. π
and if the -e option is set, it is additionally connected to vertices (i-1,j-1), (i+1,j-1), (i-1,j+1) and (i+1,j+1), if they exist. diagonal slay β¨ now that's 8 neighbors, that's main character energy, periodt.
gmk_m3 creates a 3D regular grid graph of dimX times dimY times dimZ vertices, such that vertex (i,j,k) is connected to vertices (i,j,k-1), (i,j-1,k), (i-1,j,k), (i+1,j,k), (i,j+1,k) and (i,j,k+1), if they exist. three dimensions?? she's deep, she's layered, she's literally 3D. π§
π OPTIONS π
-bbvalβ Set the base value of the graph tobval. Default base value is0. so if you want your numbering to start somewhere else, here's your moment π«-eβ Build a 8-neighbor grid rather than a 4-neighbor one (forgmk_m2only). yes she's exclusive, yes it's only forgmk_m2, don't @ her aboutgmk_m3π-gcfileβ Output graph vertex coordinates (that is, geometry data to be used bygout) in filecfile. like, the actual positions of everything, saved to a file, ready forgoutto eat up π₯-hβ Display some help. bestie needs assistance? she's got you π«Ά-tβ Builds a torus rather than a grid. no edges, no boundaries, she just wraps around forever, it's giving infinity π-Vβ Display program version and copyright. the receipts, the lore, the credentials β¨-yβ Invert y coordinate in geometry. y is flipped, y is not like the other girls π
π EXAMPLE π
Create a 2D graph of 5x7 vertices, of base 1, along with its geometry:
$ gmk_m2 5 7 -b1 -g/tmp/m5x7.xyz /tmp/m5x7.grf
look at her go. 5 by 7, base 1, geometry landing in /tmp/m5x7.xyz, graph landing in /tmp/m5x7.grf. ate and left no crumbs π
π SEE ALSO π
gtst(1), gout(1), gmap(1), gord(1), gpart(1).
Scotch user's manual.
iykyk π
πΈ AUTHOR πΈ
Francois Pellegrini <francois.pellegrini@labri.fr>
and that's the whole page, bestie π this was gmk_m2(1) from the Scotch user's manual, dated 02 April 2021 β mwah, love that for her, go make some grids πβ¨π¦
π¦ where this page comes from
- debian bookworm: scotch 7.0.3-2 Β· CeCILL-C
- debian trixie: scotch 7.0.7-1 Β· CeCILL-C
- ubuntu noble: scotch 7.0.4-1ubuntu2 Β· CeCILL-C
- ubuntu questing: scotch 7.0.5-1ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms