1#ifndef __FIBER_GRID_TYPES_GRIDWITHCARTESIANVERTICES_HPP
2#define __FIBER_GRID_TYPES_GRIDWITHCARTESIANVERTICES_HPP
4#include "TypedGrid.hpp"
30 CartesianVertices =
nullptr;
31 CartesianPositions =
nullptr;
33 if (!TypedGrid::assign(theGrid) )
return false;
35 Vertices = theGrid->findVertices();
39 CartesianVertices = theGrid->getCartesianRepresentation(*Vertices );
40 if (!CartesianVertices)
43 CartesianPositions = theGrid->CartesianPositions();
44 if (!CartesianPositions)
50 ~GridWithCartesianVertices();
55 return CartesianPositions.valid();
58static GridWithCartesianVertices
59 create( Grid&myGrid,
int Dims,
const RefPtr<Field>&Positions)
61 Representation&myCartesianRepresentation = myGrid.makeCartesianRepresentation(Dims);
62 myCartesianRepresentation[ FIBER_POSITIONS ] = Positions;
64 return GridWithCartesianVertices( myGrid.self() );
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
Definition GridWithCartesianVertices.hpp:11
RefPtr< Representation > CartesianVertices
Collection of all fields given on vertices relative to cartesian coordinates.
Definition GridWithCartesianVertices.hpp:17
Base class for grid types.
Definition TypedGrid.hpp:47