Skip to main content

Module distance

Module distance 

Source
Expand description

closest_points: the least distance between two points, curves or faces of models — each where a pose puts it — and two points that attain it.

A branch and bound over pieces of the two (least_distance): spans of curves, patches of a face’s surface and spans of its edges. A patch the face’s trim definitely leaves out is dropped, and a patch only known to meet the trim attains a point where its middle is on the face. The least distance of a face is either at a point inside it or on its boundary, which its edges’ spans attain.

Structs§

Closest
The least distance between two features, and two points of them attaining as little as the search could tell apart from it.
PlacedFace
A face of a model, where pose puts it — or where it is, without one.

Enums§

Feature
Something a distance is measured to.

Functions§

closest_points
The least distance between a and b, and two points attaining it (see the module docs).
could_touch
Whether a and b could be at distance zero: what closest_points answers too, without finding the least distance between them (see could_come_within).