AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::bump::AdaptPolyhedron< TopologyView, CoordsetView, makeFaces > Struct Template Reference

Make a primal::Polyhedron from a polyhedron shape. More...

#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/main/src/axom/bump/PrimalAdaptor.hpp>

Public Types

using value_type = typename CoordsetView::value_type
 
using Polyhedron = axom::primal::Polyhedron< value_type, 3 >
 
using PolyhedralRepresentation = Polyhedron
 

Static Public Member Functions

static AXOM_HOST_DEVICE PolyhedralRepresentation convert (const TopologyView &topologyView, const CoordsetView &coordsetView, size_t zoneIndex)
 Return a zone as primal::Polyhedron. More...
 

Detailed Description

template<typename TopologyView, typename CoordsetView, bool makeFaces>
struct axom::bump::AdaptPolyhedron< TopologyView, CoordsetView, makeFaces >

Make a primal::Polyhedron from a polyhedron shape.

Member Typedef Documentation

◆ value_type

template<typename TopologyView , typename CoordsetView , bool makeFaces>
using axom::bump::AdaptPolyhedron< TopologyView, CoordsetView, makeFaces >::value_type = typename CoordsetView::value_type

◆ Polyhedron

template<typename TopologyView , typename CoordsetView , bool makeFaces>
using axom::bump::AdaptPolyhedron< TopologyView, CoordsetView, makeFaces >::Polyhedron = axom::primal::Polyhedron<value_type, 3>

◆ PolyhedralRepresentation

template<typename TopologyView , typename CoordsetView , bool makeFaces>
using axom::bump::AdaptPolyhedron< TopologyView, CoordsetView, makeFaces >::PolyhedralRepresentation = Polyhedron

Member Function Documentation

◆ convert()

template<typename TopologyView , typename CoordsetView , bool makeFaces>
static AXOM_HOST_DEVICE PolyhedralRepresentation axom::bump::AdaptPolyhedron< TopologyView, CoordsetView, makeFaces >::convert ( const TopologyView &  topologyView,
const CoordsetView &  coordsetView,
size_t  zoneIndex 
)
inlinestatic

Return a zone as primal::Polyhedron.

Parameters
topologyViewThe topology view.
coordsetViewThe coordset view.
zoneIndexThe 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().


The documentation for this struct was generated from the following file: