Macro soft_edge::vertex_set[][src]

macro_rules! vertex_set {
    ($($val : expr), *) => { ... };
}
Expand description

Construct a vertex set.

Example

// Construct a vertex set representing a tetrahedron, made with the four vertices of
// index 1, 4, 5, and 7.
let tetrahedron_set = vertex_set![0, 1, 0, 0, 1, 1, 0, 1];
let hull = Atom::new(tetrahedron_set).compound_hull();
// A tetrahedron built like this will have one interior face (conceptually, from
// slicing off one corner of the cube) and three exterior faces (all triangles,
// leftover sides from the slicing operation which used to be squares.)
assert_eq!(hull.interior().facets().count(), 1);
assert_eq!(hull.exterior().facets().count(), 3,);