Skip to main content

loft_polygon_stations_exact

Function loft_polygon_stations_exact 

Source
pub fn loft_polygon_stations_exact(
    sections: &[(Frame3, Vec<Vec<DVec2>>)],
    tolerance: Tolerance,
) -> Result<ExactBRep, GeomError>
Expand description

Loft planar polygon sections exactly; see the module documentation.

Each section is its plane’s frame (orthonormal, z towards the next section) and its rings in that frame: the outer first, counter-clockwise about z, then each hole, clockwise. Every section has the same ring structure.

§Errors

Fewer than two sections, sections whose ring structures differ, a ring of fewer than three vertices, and a collapsed edge, by name; a wall whose corners are not coplanar within tolerance as GeomError::UnsupportedInput naming WARPED_WALL; and an assembly that is not a closed manifold.