CANONICAL(1)
π NAME π
okay bestie, welcome to the canonical(1) page. The command is canonical, and its whole job is to canonicalize a polyhedon β yes, βpolyhedonβ exactly like that, iykyk ππ
π¦ SYNOPSIS π¦
canonical [options] [input_file]
π DESCRIPTION π
So canonical reads a polyhedron from a file in OFF format. Then it canonicalizes or planarizes it. β¨ It uses algorithms by George W. Hart, and the page gives these links: http://www.georgehart.com/, http://www.georgehart.com/virtual-polyhedra/conway_notation.html, and http://www.georgehart.com/virtual-polyhedra/canonical.html. If input_file is not given, the program reads from standard input. no cap π«Ά
β¨ Options β¨
-h,--helpβ this help message (runoff_util -H helpfor general help). π--versionβ version information.-Hβ documentation on algorithm.-z <nums>β number of iterations between status reports (implies termination check) (0for final report only,-1for no report), optionally followed by a comma and the number of iterations between termination checks (0for report checks only) (default:1000,1).-l <lim>β minimum distance change to terminate, as negative exponent (default:12giving1e-12).
β οΈ WARNING: high values can cause non-terminal behaviour. Use -n.
-o <file>β write output to file (default: write to standard output).
π Canonical and Planarization Options π
-e <opt>β edge distribution (default: none, canonicalization only).s- project vertices onto a sphere.-s <opt>β shuffle model indexes.v- vertices,e- edges,f- faces,a- all (default: none).-t <opt>β target model.b- work on base only (default),p- work on dual for planarization only,c- work on dual for planarization and canonicalization.-p <opt>β planarization only, or initial planarization if-cis set (default: no planarization).p- poly_form planarize (poly_form -a p),m- mathematica planarize,a- moving edge planarize,b- base/dual (reciprocate on face centroids magnitude squared).-i <itrs>β maximum planarize iterations.-1for unlimited (default:-1).
π WARNING: unstable models may not finish unless -i is set.
-c <opt>β canonicalization.c- circle packings (default),m- mathematica version,a- moving edge version,b- base/dual version (reciprocate on face normals),x- none (default, if-pis set).-n <itrs>β maximum canonical iterations.-1for unlimited (default:-1).
π WARNING: unstable models may not finish unless -n is set.
-d <perc>β radius test. percent difference between minimum and maximum radius; checks if polyhedron is collapsing.0for no test (default:80for canonicalizing, not used for planarizing).-yβ maintain symmetry and alignment of the base model during processing (with-p p,-c c).
π Extra Options π
-Q <perc>β percentage to scale edge tangency (default:50) (-c m).-P <perc>β percentage to scale face planarity (default:20) (-c m,-p m,-p p).-f <adj>β initial percent adjustment factor, optionally followed by a comma and a maximum percent adjustment (default:1,50) (-c c).-Cβ continue processing a near-canonical model (the initial intermediate processing model will preserve the geometry of the base model rather than avoid scrambling) (-c c).
π Scene Options π
-O <args>β outputb- base,d- dual,i- intersection points (default:b); edge nearpoints,n- base,m- dual;c- base/dual convex hull edge nearpoints centroid,p- base,q- dual;o- origin point tangent sphere,u- minimum,U- maximum incircles,s- base,t- dual; as rings,S- base,T- dual.-q <dist>β incircles offset to avoid coplanarity e.g0.0001(default:0).-g <opt>β roundness of tangent sphere, positive integern(default:8).-Yβ align output model geometry to full symmetry.
π Coloring Options π
Coloring Options (run off_util -H color for help on color formats). keyword: none - sets no color, u - input base model, color of element unchanged. π¨
-F <col>β face color/operation, assignment (required), transparency (optional). The assignment targets are:b- base,d- dual,i- intersection points edge nearpoints,n- base,m- dual;c- base/dual convex hull edge nearpoints centroid,p- base,q- dual;o- origin point,u- tangent sphere, incircles (or rings),s- base,t- dual (one element, required; multiple-Fas needed).-F d,b- face color by convexity,-F b,d- color from base verts;-F s,ftake color from faces,-F t,ftake color from faces. defaults:b-'u'unchanged,d-'b'take color from base verts,i- yellow,n,p- red,m,q- darkgreen,c- white,o- yellow,u- white,s,t-'f'color of face.-E <col>β edge color (same format as for faces) (defaults: unchanged).-E d,b- edge color by convexity.-V <col>β vertex color (same format as for faces) (defaults: unchanged). transparency: valid range from0(invisible) to255(opaque).-m <maps>β a comma separated list of color maps used to transform color indexes (default:colorful), a part consisting of letters fromv,e,f, selects the element types to apply the map list to (default'vef'). use map name of'index'to output index numbers.
π¨ convexity π¨
white,gray50,gray25 (for -F d,b, -E d,b).
π SEE ALSO π
The full documentation for canonical is maintained as a Texinfo manual. If the info and canonical programs are properly installed at your site, the command
info canonical
should give you access to the complete manual.
π signed, sealed, slayed: this is canonical from Antiprism 0.32 over at http://..., and the footer tag is CANONICAL(1). mwah π«Άβ¨
π¦ where this page comes from
- nixos 26.05: antiprism 0.32
- nixpkgs unstable: antiprism 0.32
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms