1#ifndef __UNIGRIDMAPPER_HPP
2#define __UNIGRIDMAPPER_HPP
4#include <aerie/BoundingBox.hpp>
5#include <eagle/PhysicalSpace.hpp>
6#include <eagle/QuadraticMatrix.hpp>
8#include <field/UniformCartesianArray.hpp>
10#include <fish/fiber/vector/Interpolate.hpp>
11#include <fish/fiber/vector/LinearIpol.hpp>
13#include <memcore/RefPtr.hpp>
15#include "gridopDllApi.h"
68 int MaximalCurvicellPerUnicell()
const
74static inline double avg(
const double a,
const double b)
79static inline void clampRange(
point&p,
const double min,
const double max)
81 for(
unsigned i = 0; i < 3; i++)
83 p[i] = ( p[i] <
min) ?
min : p[i];
84 p[i] = ( p[i] >
max) ?
max : p[i];
90 if(
u[0] >= it[0] &&
u[0] <= it[0]+1 &&
91 u[1] >= it[1] &&
u[1] <= it[1]+1 &&
92 u[2] >= it[2] &&
u[2] <= it[2]+1 )
104 if(p[0] >= 0.0 && p[1] >= 0.0 && p[2] >= 0.0)
144 bool curviCells(
const point&p, IndexList_t&
list);
166 unsigned localCellCoordinatesFromCurviGridProjective(
const point&p,
point&uvw,
const double&
grid_epsilon );
constexpr __enable_if_is_duration< _ToDur > floor(const duration< _Rep, _Period > &__d)
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Class for N-dimensional MultiArrays with MemCore memory management.
Definition MemArray.hpp:34
The UniGridMapper Maps a cell in a uniform grid to curvilinear cells, which are contained or intersec...
Definition UniGridMapper.hpp:31
point getMax()
Get the maximum coord of the bounding box of the UniGridMapper.
Definition UniGridMapper.hpp:130
IndexList_t & operator()(const MultiIndex< 3 > &m) const
return list of curvi-cell indices at a given uni-grid index
Definition UniGridMapper.hpp:122
point operator[](const MultiIndex< 3 > &m) const
return point at a given uni-grid index
Definition UniGridMapper.hpp:119
point getMin()
Get the minimum coord of the bounding box of the UniGridMapper.
Definition UniGridMapper.hpp:127
MultiIndex< 3 > Size() const
return the size of the curvi linear index list (Thats not a helpful comment, is it?...
Definition UniGridMapper.hpp:116
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2