macro_rules! polyhedron {
(points=$points:expr, faces=$faces:expr, convexity=$convexity:expr) => { ... };
($points:expr, $faces:expr, $convexity:expr) => { ... };
($points:expr, $faces:expr) => { ... };
}Expand description
Creates a polyhedron.
#params
points: The vertices of the polyhedron.
faces: A list of lists of indices into points.
convexity: The number of outside faces a ray intersecting the polyhedron might encounter. Preview only.
expansion: A Scad struct literal.
#patterns
polyhedron!(‘points: Pt3s’, ‘faces: Faces’);
polyhedron!(‘points: Pt3s’, ‘faces: Faces’, ‘convexity: u64’);
polyhedron!(points=‘points: Pt3s’, faces=‘faces: Faces’, convexity=‘convexity: u64’);