pub fn find_plane(
model: &Model,
shape: &Shape,
tol: Tolerances,
) -> OgeomResult<Option<Plane>>Expand description
The plane a shape lies in, if it lies in one.
Fitted to the shape’s geometry and then checked: the fit always produces a
plane, and the answer is only useful if every sample is within tolerance of
it. None means the shape is not planar, which is a fact about the shape
rather than a failure.
Curved edges are sampled along their length, not only at their ends. A circular arc’s endpoints lie in a great many planes that the arc does not.
§Errors
OgeomError::Dangling if a handle fails to
resolve.