SWEEP_EDGES(1)
π¦ sweep_edges(1) β the sweep_edges girlies' field guide
Ok so bestie, listen β this is a User Commands page, and the whole vibe is: take an edge, sweep it, get a surface. Iconic behavior honestly. Let's get into it π
β¨ NAME β¨
sweep_edges β sweep edges to make a surface. That's it, that's the whole gig. π
π SYNOPSIS π
sweep [options] input
πΈ DESCRIPTION πΈ
So here's the tea β β this program reads an input model in OFF format and transforms it over and over again, producing a polygonal surface made out of the quadrilaterals that the edges sweep out. Literally each step, the input model gets transformed according to whatever transformations you specified, and those transformations can be defined using the sweep progress variables FRAC and ANG.
FRAC runs from 0.0 at step 0 all the way to 1.0 on the final step, bestie. So:
FRAC = current_step / total_steps ANG = 360.0 * FRAC
Lowkey obsessed with how clean that is. β¨
Colours are taken from the input model if the beginning of the sweep does not coincide with the end, or if option -O is set. Otherwise, sweep circuits are found and the colours get set from the colour map (that's option -m, more on her below π).
Vertex colours are used for final vertices and swept vertex edges. Edge colours are used for swept edge faces. Very demure, very mindful, very assigned-by-element-type. π«Ά
And if input is not given, the program reads from standard input. No input? No problem. π
π Options π
-h,--helpβ this help message (and hey, runoff_util -H helpfor general help while you're at it)--versionβ version information, iykyk-n <int>β number of steps (default:12)-T <tran>β translate! Three numbers separated by commas, used as thex,yandzdisplacements.-R <rot>β rotate about an axis. Three, four or six numbers separated by commas π:- If three numbers, these are angles (degrees) to rotate about the
x,yandzaxes. - If four numbers, the first three are a direction vector for the axis, and the last number is the angle (degrees) to rotate.
- If six numbers, these are two vectors (from,to) and rotate to carry the first to the second.
- If twelve numbers, these are four vectors (from1,from2,to1,to2) and rotate to carry the first onto the third, then rotate around the third to carry the second onto the fourth.
- If three numbers, these are angles (degrees) to rotate about the
-M <norm>β reflect in a plane. Three numbers separated by commas giving a vector normal to the plane of reflection. πͺ-S <scal>β scale. One, three or four numbers separated by commas:- If one number, scale by this factor in all directions.
- If three numbers, these are the factors to scale along the
x,yandzaxes. - If four numbers, the first three are a direction vector for the scaling, and the last number is the factor to scale.
-Iβ inversion. Just. Inversion. Periodt. π₯-A <crds>β a transformation that will align two sets of three points (18numbers: coordinates of from1,from2,from3,to1,to2,to3)-a <angs>β a transformation that makes particular angles between the mapped axes. Angles in degrees, in the formyz_ang,zx_ang,xy_ang(corresponding to the angles opposite thex-,y- andz-axis)-X <mtrx>β transformation matrix of9or12values, given left-to-right top-to-bottom, used to premultiply each coordinate-iβ replaces the current combined transformation by its inverse π-tβ triangulate-Oβ do not join coincident sweep ends-l <lim>β maximum distance between vertices that should be coincident.limis an integer representing the negative exponent of the distance (default:8, giving1e-08)-m <maps>β a comma separated list of colour maps used to transform colour indexes (default:rand). A part consisting of letters fromv,e,fselects the element types to apply the map list to (default'vef'). The'compound'map should give useful results. π-o <file>β write output tofile(default: write to standard output)
π SEE ALSO π
The full documentation for sweep_edges is maintained as a Texinfo manual. If the info and sweep_edges programs are properly installed at your site, this command:
info sweep_edges
should give you access to the complete manual. Slay. π
ngl bestie, if something here is giving deprecated or undefined energy, take it seriously β but everything above is straight from the source, no cap. π«Ά
Ok that's the whole page, mwah π β brought to you by sweep: Antiprism 0.32 - http://www.... , filed under SWEEP_EDGES(1). Go sweep some edges, you absolute icon. π¦β¨
π¦ 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