Skip to main content

Module thicken

Module thicken 

Source
Expand description

Thickening an open mesh into a closed one: two offset layers of it joined by a wall along each rim.

The sheet’s faces face the way their corners wind counter-clockwise. Each layer is the sheet offset by Editable::offset, folds repaired: the front layer, which keeps the sheet’s winding, by the larger distance, and the back layer, wound the other way, by the smaller. The layers’ rims are the sheet’s, less any rim vertex a fold repair merged along the rim, so each rim of one layer is walked beside the same rim of the other, by where its vertices came from on the sheet’s rim, and the strip between them is closed with triangles, each joining an edge of one layer to a vertex of the other.

The result is checked exactly as boolean checks an operand, so layers or walls that run into each other, where the sheet bends tighter than the distance or its rim nearly touches itself, are refused rather than returned.

Structs§

Thickened
A thickened sheet.

Enums§

Thicken
Which side of a sheet a thickening grows to.

Functions§

thicken
Thicken an open mesh by distance to side.