Skip to main content

check_polyhedral_surface

Function check_polyhedral_surface 

Source
pub fn check_polyhedral_surface<T: PolyhedralSurface>()
Expand description

Call this in a unit test next to your type definition to surface adaptation errors close to the source rather than at the algorithm call site.

Mirrors the polyhedral-surface arm of boost::geometry::concepts::check<T>() (see boost/geometry/geometries/concepts/check.hpp).

§Examples

use geometry_trait::check_polyhedral_surface;
fn _call<P: geometry_trait::PolyhedralSurface>() { check_polyhedral_surface::<P>(); }