Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_MarchingCubes.H File Reference
#include <AMReX_FArrayBox.H>
#include <AMReX_Geometry.H>
#include <AMReX_GpuContainers.H>
#include <map>
#include <memory>
#include <string>

Go to the source code of this file.

Classes

struct  amrex::MC::Vertex
 Vertex buffer storing coordinates and normals for extracted surfaces. More...
 
struct  amrex::MC::Triangle
 Triangle index buffer referencing Vertex entries. More...
 
class  amrex::MC::MCFab
 Minimal container holding marching-cubes output for one FAB. More...
 

Namespaces

namespace  amrex
 
namespace  amrex::MC
 

Functions

void amrex::MC::Initialize ()
 Initialize internal lookup tables and device buffers for marching cubes.
 
void amrex::MC::Finalize ()
 Destroy any static storage allocated by Initialize().
 
void amrex::MC::marching_cubes (Geometry const &geom, FArrayBox &sdf_fab, MCFab &mc_fab)
 Run marching cubes on signed-distance field sdf_fab.
 
void amrex::MC::write_stl (std::string const &filename, std::map< int, std::unique_ptr< MCFab > > const &mc_fabs)
 Write the collected marching-cubes output to an STL file.
 

Detailed Description

GPU-enabled marching-cubes routines used to extract EB surfaces.