1#ifndef __FIBER_BASEOP_UNIFORMMAPPING_HPP
2#define __FIBER_BASEOP_UNIFORMMAPPING_HPP
4#include <fiber/field/UniformCartesianArray.hpp>
5#include <fiber/grid/types/RegularlyFragmentedGrid.hpp>
6#include <fiber/grid/types/FragmentedUniformGrid3D.hpp>
7#include <elementary/memcore/Loader.hpp>
9#include "gridopDllApi.h"
22 const UniformCartesianArray&UMap,
26 const FixedArray<double,3>&Numericalshift = {0.,0.,0.});
34RefPtr<MemArray<3,double>>
72MapToUniformIndexResult_t
76 int Component,
const FixedArray<double,3>&NumericalShift);
81 const UniformCartesianArray&UMap,
84 const FixedArray<double,3>&Numericalshift = {0.,0.,0.});
88RefPtr<MemArray<3,double>>
91 const FixedArray<double,3>&Numericalshift = {0.,0.,0.} );
95 const UniformCartesianArray&UMap,
96 const RefPtr<MemArray<3,double>>&Heightfield,
98 const FixedArray<double,3>&Numericalshift = {0.,0.,0.} );
102 const UniformCartesianArray&UMap,
103 const RefPtr<MemArray<3,double>>&Heightfield,
105 const FixedArray<double,3>&Numericalshift = {0.,0.,0.} );
118 const UniformCartesianArray&UMap,
119 const MultiArray<3, double>&Heightfield,
121 const FixedArray<double,3>&Numericalshift = {0.,0.,0.},
122 double HeightSlice = 0.0);
146 double HeightSlice = 0.0);
150 FragmentedUniformGrid3D&UGrid,
151 const RegularlyFragmentedField<3>&Heightfield,
156void InterpolateUniformHeightfieldOnGrid(Grid&Dest,
157 FragmentedUniformGrid3D&UGrid,
158 const RegularlyFragmentedField<3>&Heightfield,
163std::string InterpolateUniformDataOnGrid(Grid&Dest,
164 const Grid&UniformSource,
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
void MapToUniform(MultiArray< 3, double > &Dest, const UniformCartesianArray &UMap, const TypedChunkBase< FixedArray< double, 3 > > &Src, std::vector< index_t > &IndexArray, int Component, const FixedArray< double, 3 > &Numericalshift)
Insert data to a height field.
Definition UniformMapping.cpp:24
MapToUniformIndexResult_t MapToUniformIndex(const UniformCartesianArray &UMap, TypedChunkBase< FixedArray< double, 3 > > &Src, double InvalidData, int Component, const FixedArray< double, 3 > &NumericalShift)
Create a height field with an index array that allows to reproduce the mapping on other data arrays.
Definition UniformMapping.cpp:139
void InterpolateUniformHeight(TypedChunkBase< FixedArray< double, 3 > > &Dest, const UniformCartesianArray &UMap, const MultiArray< 3, double > &Heightfield, int Component, const FixedArray< double, 3 > &Numericalshift, double HeightSlice)
Given an array of points (derived from FixedArray<double> ), replace the given component by an interp...
Definition UniformMapping.cpp:176
gridop_API void InterpolateUniformHeightfield(MemCore::TypedChunkBase< FixedArray< double, 3 > > &Dest, const std::vector< size_t > &IndexArray, const UniformCartesianArray &UMap, const MultiArray< 3, double > &Heightfield, int Component=2, const FixedArray< double, 3 > &Numericalshift={0., 0., 0.}, double HeightSlice=0.0)
Given an indexed array of points (derived from FixedArray<double> ), replace the given component by a...
StrongPtr< Object, ObjectBase > RefPtr