pub fn medial_graph(
model: &Model,
face: &Shape,
tolerance: f64,
tol: Tolerances,
) -> OgeomResult<MedialGraph>Expand description
The medial axis of a planar face: every point with two or more nearest boundary elements, as exact branches between branch points.
Holes, reflex corners and circular arcs are handled exactly; an edge on
any other curve bisects along a fitted branch held to tolerance. The
result’s own check is reported in MedialGraph::deviation.
§Errors
OgeomError::Construction if the
face is not planar or its boundary cannot be read;
OgeomError::NotDone if the branches
still fail their check after every refinement of the sampling.