Functions to initialise a complex as a regular grid. More...
#include <config.h>
#include <util/vector.h>
#include <factory/grid.h>
#include <list>
#include <algorithms/insert.h>
#include <algorithms/complex.h>
#include <cassert>
#include <cmath>
Go to the source code of this file.
Classes | |
struct | complex_factory::HexFiller< Complex, Model > |
For internal use only! More... | |
struct | complex_factory::SquareFiller< Complex, Model > |
For internal use only! More... | |
Namespaces | |
namespace | complex_factory |
Contains functions to initialise a complex. | |
Defines | |
#define | TF_BOTTOM_CORNER(i, j) bottom_corner[(i)*(M+1)+(j)] |
#define | TF_CORNER(i, j) corners[(i)*(M+1)+(j)] |
#define | TF_TOP_CORNER(i, j) top_corner[(((i)>N)?N:(i))*(M+1)+(j)] |
Typedefs | |
typedef util::Vector< 2, size_t > | complex_factory::Point2u |
typedef util::Vector< 3, double > | complex_factory::Point3d |
Functions | |
template<class Graph > | |
void | complex_factory::connectJunction (const typename Graph::vertex_t &j, const typename Graph::vertex_t &nj, const typename Graph::vertex_t &pj, Graph &S, bool direct=true) |
Connect j to nj knowing than pj is the junction before j in the current cell. | |
template<typename Complex , class Model > | |
bool | complex_factory::hex_grid (size_t N, size_t M, Complex &T, Model &model, const Point3d &bottom_left=Point3d(0, 0, 0), const Point3d &u=Point3d(1, 0, 0), const Point3d &v=Point3d(0, 1, 0)) |
Create a hexagonal grid with N lines and M columns. | |
template<typename Complex , class Model > | |
bool | complex_factory::square_grid (size_t N, size_t M, Complex &T, Model &model, const Point3d &bottom_left=Point3d(0, 0, 0), const Point3d &shift_right=Point3d(1, 0, 0), const Point3d &shift_up=Point3d(0, 1, 0)) |
Create a square grid with N lines and M columns. | |
template<typename Complex , class Model > | |
SquareFiller< Complex, Model > | complex_factory::squareFiller (const Point3d &bottom_left, const Point3d &shift_right, const Point3d &shift_up, Complex &T, Model &model) |
Create a square filler. |
Functions to initialise a complex as a regular grid.
Definition in file complex_grid.h.