Skip to main content

Module small

Module small 

Source
Expand description

Small faces and small solids, removed where a caller names the size below which they are noise.

A face the size of a tolerance is no feature: an exchange round trip or a boolean at the edge of its resolution leaves spots (a face that fits in a ball of that size) and strips (a face whose two long sides stand that close along their length). Neither is removed by fix_shape, which drops nothing the model says is there; this is the step that does, at a size the caller states.

A spot collapses to a point: its edges go and its vertices become one. A strip collapses to an edge: its short ends go, one long side stands for both, and its neighbours meet on it. Either way the neighbours’ geometry does not move; the vertices and edges that close the gap widen to own it, as the containment rule asks, and trims are fitted where an edge now bounds a face it did not.

Structs§

SmallFaces
What fix_small_faces removed.

Functions§

fix_small_faces
Remove every face of shape smaller than size: a spot (it fits in a ball of that diameter) collapses to a point, and a strip (two long sides within size of each other along their length, every other side shorter than size) collapses to one of its long sides.
remove_small_solids
Remove every solid of shape enclosing less than volume: the debris an exchange or a boolean leaves beside the part.