Skip to main content

Module meet

Module meet 

Source
Expand description

The point at given offsets from several surfaces: where a shell moves a vertex, onto the inner copies of its faces, where a draft moves one onto its tilted faces, and where a blend’s ball touches the faces it rounds.

One condition per smooth surface (Offset): the point lies its offset along the surface’s unit normal, behind it for a negative one. A surface may come in pieces — the quarters of a revolved face meeting at its pole — and is then one condition, not several (tangent_groups). Planes through a point add linear conditions. meet finds the point nearest its start that meets all of them.

Structs§

Offset
A condition on the point meet finds: that it lie offset along the unit normal of the smooth surface pieces are the pieces of, each with where to start looking for the foot point on it. meet leaves there the foot point of its last seed, sharp: a seed for the next search.

Functions§

meet
The point nearest start that lies at every one of offsets and in every one of planes (a unit normal and a point each): Gauss-Newton. Each step measures how far off each condition the iterate is — along the normal at its foot point on each surface, along each plane’s normal — and takes the shortest step that corrects all of them at once, to first order. Between planes that is exact in one step; with fewer than three conditions the point slides along where they meet, by no more than it has to.
tangent_groups
pieces, each a surface and where a point is on it, grouped into the smooth surfaces they are pieces of there: those whose normals there could be parallel. The groups as indices into pieces, in order.