Skip to main content

Crate geop_ops_subd

Crate geop_ops_subd 

Source
Expand description

Subdivision-surface modelling: a freeform body shaped by a control cage and built as the cage’s Catmull–Clark limit surface, a B-rep of B-spline faces every other operation works with.

  • cage: the cage a step holds — vertices, faces, creased edges — and the same indexed, mirrored and checked.
  • edit: the cages to start from, and the edits that shape them; select: the edge loops, rings and boundaries they and a selection follow.
  • subdivide: one Catmull–Clark step with creases, after which every face is a quad.
  • limit: the limit surface of that as bicubic Bézier patches sharing their boundary curves.
  • brep: those patches as a closed solid, or an open sheet, with the cage’s own topology and names.
  • operation: the Subd operation of a program, and how it is edited.

Re-exports§

pub use cage::Cage;
pub use cage::CageFace;
pub use cage::CageVertex;
pub use cage::Crease;
pub use cage::Mirror;
pub use operation::Subd;
pub use operation::SubdArgs;
pub use operation::SubdEditing;
pub use operation::SubdSession;
pub use operation::build_subd;

Modules§

brep
The limit surface of a cage as a B-rep: a solid if the cage is closed, a sheet if it has a boundary, described whole as a BodySpec.
cage
Cage: the control mesh a subdivision surface is the limit of, as a step’s arguments hold it — vertices, faces through them, and the edges creased sharp — and Mesh, the same mesh indexed, mirrored if asked to, and checked to be one a limit surface can be built from.
edit
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.
examples
The examples of subdivision surfaces an editor offers: a computer mouse, and a mug with a handle.
limit
The limit surface of a once-subdivided cage (see crate::subdivide), as one bicubic Bézier patch per quad.
operation
Subd: a freeform body shaped by its control cage, built as the cage’s Catmull–Clark limit surface — a solid for a closed cage, a sheet for an open one.
select
Walks over a cage’s edges, for selecting and for the edits that follow them: the ring across the quads either side of an edge, the loop straight on through its vertices, and the boundary run of an open cage.
subdivide
One Catmull–Clark step, with sharp creases: what every face of the cage becomes before its limit surface is built (see crate::limit).

Functions§

register
Adds what this crate offers an editor to r: subdivision surfaces, and the examples of them.