AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
Discretize.hpp File Reference
#include "axom/core/Macros.hpp"
#include "axom/primal/geometry/Sphere.hpp"
#include "axom/primal/geometry/Octahedron.hpp"
#include "detail/Discretize_detail.hpp"

Namespaces

 axom
 
 axom::mint
 
 axom::quest
 

Functions

Visualize octahedra as tet mesh
int axom::quest::mesh_from_discretized_polyline (axom::ArrayView< OctType > &octs, int octcount, int segcount, mint::Mesh *&mesh)
 Produces a mesh of tets from an array of Octahedra. More...
 

Discretize primitive shapes to linear shapes

using axom::quest::SphereType = primal::Sphere< double, 3 >
 
using axom::quest::OctType = primal::Octahedron< double, 3 >
 
using axom::quest::Point2D = primal::Point< double, 2 >
 
bool axom::quest::discretize (const SphereType &s, int levels, axom::Array< OctType > &out, int &octcount)
 Given a primitive sphere and a refinement level, allocate and return a list of Octahedra approximating the shape. More...
 
template<typename ExecSpace >
bool axom::quest::discretize (axom::Array< Point2D > &polyline, int len, int levels, axom::Array< OctType > &out, int &octcount)
 Given a 2D polyline revolved around the positive X-axis, allocate and return a list of Octahedra approximating the shape. More...