Wildmeshing Toolkit
wmtk::components::procedural::Grid2Options Class Reference

#include <Grid2Options.hpp>

Classes

struct  Coordinates
 

Public Types

enum class  TilingType { BCC = 0 , Diagonal = 1 }
 

Public Member Functions

std::optional< std::string > get_coordinate_name () const
 

Public Attributes

TilingType tiling_type
 
std::array< int64_t, 2 > dimensions
 
std::bitset< 2 > cycles
 
std::optional< Coordinatescoordinates
 

Static Public Attributes

static const std::array< std::string, 2 > tiling_names = {{"bcc", "diagonal"}}
 

Friends

void to_json (nlohmann::json &nlohmann_json_j, const Grid2Options &nlohmann_json_t)
 
void from_json (const nlohmann::json &nlohmann_json_j, Grid2Options &nlohmann_json_t)
 

Detailed Description

Definition at line 13 of file Grid2Options.hpp.

Member Enumeration Documentation

◆ TilingType

Enumerator
BCC 
Diagonal 

Definition at line 16 of file Grid2Options.hpp.

Member Function Documentation

◆ get_coordinate_name()

std::optional<std::string> wmtk::components::procedural::Grid2Options::get_coordinate_name ( ) const
inline

Definition at line 28 of file Grid2Options.hpp.

References coordinates.

Friends And Related Function Documentation

◆ from_json

void from_json ( const nlohmann::json nlohmann_json_j,
Grid2Options nlohmann_json_t 
)
friend

Definition at line 43 of file Grid2Options.hpp.

◆ to_json

void to_json ( nlohmann::json nlohmann_json_j,
const Grid2Options nlohmann_json_t 
)
friend

Definition at line 30 of file Grid2Options.hpp.

Member Data Documentation

◆ coordinates

std::optional<Coordinates> wmtk::components::procedural::Grid2Options::coordinates

Definition at line 27 of file Grid2Options.hpp.

Referenced by get_coordinate_name().

◆ cycles

std::bitset<2> wmtk::components::procedural::Grid2Options::cycles

Definition at line 20 of file Grid2Options.hpp.

◆ dimensions

std::array<int64_t, 2> wmtk::components::procedural::Grid2Options::dimensions

Definition at line 19 of file Grid2Options.hpp.

◆ tiling_names

const std::array< std::string, 2 > wmtk::components::procedural::Grid2Options::tiling_names = {{"bcc", "diagonal"}}
static

Definition at line 17 of file Grid2Options.hpp.

◆ tiling_type

TilingType wmtk::components::procedural::Grid2Options::tiling_type

Definition at line 18 of file Grid2Options.hpp.

Referenced by wmtk::components::procedural::make_mesh().


The documentation for this class was generated from the following files: