Skip to content
Snippets Groups Projects
Commit 0927c213 authored by samuel.hayden's avatar samuel.hayden
Browse files

Added structs which store data specific to the type of lattice. These are...

Added structs which store data specific to the type of lattice. These are handled by seperate builder implimentations
parent f74ea726
No related branches found
No related tags found
No related merge requests found
#pragma once
#include <vector>
#include "gp_Pnt.hxx"
/* Supported lattice types */
enum LatticeType
{
SimpleUniform = 0,
SimpleNonuniform,
GenericUniform,
GenericNonuniform,
ProjectedCartesian,
};
/* Data structs for each type of supported lattice */
struct SimpleLatticeData
{
size_t nx = 0, ny = 0, nz = 0;
double dx = 0.0, dy = 0.0, dz = 0.0;
std::vector<double> radii;
};
struct GenericLatticeData
{
double dx = 0.0, dy = 0.0, dz = 0.0;
std::vector<double> radii;
std::vector<gp_Pnt> positions;
};
struct ProjectedLatticeData
{
size_t nx = 0, ny = 0, nz = 0;
double dx = 0.0, dy = 0.0, dz = 0.0;
std::vector<double> radii;
std::vector<gp_Pnt> positions;
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment