Skip to main content

covers_whole_surface

Function covers_whole_surface 

Source
pub fn covers_whole_surface(model: &Model, face: &Shape) -> OgeomResult<bool>
Expand description

Whether a face covers the whole of its surface: it has a wire, and every edge its wires walk has no length or is a seam of that surface walked once each way.

Such a face has no boundary on the surface: a seam’s two walks run along one line in opposite senses and cancel, and an edge of no length bounds nothing. On a connected closed surface (a sphere, a torus) a face without boundary is the whole surface. Any other edge, or a seam walked otherwise, and the answer is false.

§Errors

OgeomError::Dangling if the face, a wire or an edge is not in this model.