template<typename TopologyView, typename CoordsetView, bool makeFaces>
struct axom::bump::AdaptPolyhedron< TopologyView, CoordsetView, makeFaces >
Make a primal::Polyhedron from a polyhedron shape.
template<typename TopologyView , typename CoordsetView , bool makeFaces>
Return a zone as primal::Polyhedron.
- Parameters
-
| topologyView | The topology view. |
| coordsetView | The coordset view. |
| zoneIndex | The index of the zone to convert. |
- Note
- This is a lot of work to convert Blueprint to primal::Polyhedron. It probably needs checking to ensure proper ordering of the vertex neighbors, which if you look at the point, need to be added in a counter-clockwise order.
- Returns
- A representation of the polyhedral zone.
References axom::primal::Polyhedron< T, NDIMS >::addNeighbors(), axom::primal::Polyhedron< T, NDIMS >::addVertex(), axom::utilities::binary_search(), axom::StackArray< T, N >::data(), axom::primal::make_plane(), axom::primal::Polyhedron< T, NDIMS >::MAX_VERTS, axom::StaticArray< T, N >::push_back(), axom::StaticArray< T, N >::size(), SLIC_ASSERT, axom::utilities::Sorting< T, N >::sort(), axom::utilities::swap(), and axom::primal::Polyhedron< T, NDIMS >::vertexMean().