pub type ConvexPolyhedron = ConvexPolytope<3, 32>;Expand description
A faceted convex body in three dimensions.
§Example
use hoomd_geometry::shape::{ConvexPolyhedron, Simplex3};
let poly = ConvexPolyhedron::with_vertices([
[1.0, 1.0, 1.0].into(),
[1.0, -1.0, -1.0].into(),
[-1.0, 1.0, -1.0].into(),
[-1.0, -1.0, 1.0].into(),
])?;
assert_eq!(poly.vertices(), Simplex3::default().vertices());Aliased Type§
pub struct ConvexPolyhedron { /* private fields */ }