gmk_m2(1)

πŸ“¦
version 7.0.7 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– 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 to bval. Default base value is 0. 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 (for gmk_m2 only). yes she's exclusive, yes it's only for gmk_m2, don't @ her about gmk_m3 πŸŽ€
  • -gcfile β€” Output graph vertex coordinates (that is, geometry data to be used by gout) in file cfile. like, the actual positions of everything, saved to a file, ready for gout to 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