pub fn common(
model: &mut Model,
a: &Shape,
b: &Shape,
tol: Tolerances,
) -> OgeomResult<Built>Expand description
The intersection of two solids.
Either argument may instead be a sheet (a face, a shell or a compound of those) when the other is a solid or a half space: the result is then the part of the sheet inside the other. Each face of the sheet is split where the other’s boundary crosses it, and the pieces inside are sewn along the edges they share into one shell, or a compound of shells where they fall apart, or an empty compound where none is inside. Each piece lies on its face’s surface, and the history records each against the face it came from and every face nothing is kept of as deleted.
§Errors
As fuse.
OgeomError::Construction for two
sheets, which share no volume.
OgeomError::NotDone where a piece of
a sheet lies on the other’s boundary, which keeps it on neither side.