Skip to main content

Module edit

Module edit 

Source
Expand description

What a cage starts as — a box, a cylinder, a sphere, a plane — and the edits that shape it: moving, turning and scaling its elements, extruding and insetting faces, bevelling edges, cutting and sliding edge loops, merging and dissolving, bridging two faces, filling a hole, creasing edges, deleting faces, and cutting it in half at a mirror plane or making the mirrored half its own.

An edit keeps the id of every element it does not take away, and gives what it adds ids no element has had, so that names built from them stay put (see crate::cage). Every edit is a function of the cage and its arguments alone, its order fixed by the ids, so that the same edit of the same cage makes the same cage.

Enums§

Element
An element of a cage, as a selection names it (see crate::cage::vertex_key, crate::cage::edge_key, crate::cage::face_key).