Go to the documentation of this file.
18 #ifndef viskores_cont_DataSetBuilderCurvilinear_h
19 #define viskores_cont_DataSetBuilderCurvilinear_h
38 const std::string& coordsNm =
"coords")
42 std::vector<T> yVals(xVals.size(), 0), zVals(xVals.size(), 0);
44 auto coords = viskores::cont::make_ArrayHandleSOA<viskores::Vec<T, 3>>({ xVals, yVals, zVals });
51 const std::vector<T>& yVals,
53 const std::string& coordsNm =
"coords")
57 std::vector<T> zVals(xVals.size(), 0);
58 auto coords = viskores::cont::make_ArrayHandleSOA<viskores::Vec<T, 3>>({ xVals, yVals, zVals });
65 const std::vector<T>& yVals,
66 const std::vector<T>& zVals,
68 const std::string& coordsNm =
"coords")
73 auto coords = viskores::cont::make_ArrayHandleSOA<viskores::Vec<T, 3>>({ xVals, yVals, zVals });
82 const std::string& coordsNm =
"coords")
88 template <
typename CoordsType>
91 const std::string& coordsNm =
"coords")
96 template <
typename CoordsType>
99 const std::string& coordsNm =
"coords")
104 template <
typename CoordsType>
106 const std::string& coordsNm =
"coords")
109 coords, { coords.GetNumberOfValues(), 0, 0 }, 1, coordsNm);
113 template <
typename CoordsType>
117 const std::string& coordsNm =
"coords")
125 VISKORES_ASSERT(coords.GetNumberOfValues() == dims[0] * dims[1] * dims[2]);
131 else if (cellSetDim == 2)
140 else if (cellSetDim == 1)
159 #endif //viskores_cont_DataSetBuilderCurvilinear_h
Contains and manages the geometric data structures that Viskores operates on.
Definition: DataSet.h:66
Definition: DataSetBuilderCurvilinear.h:30
Manages a coordinate system for a DataSet.
Definition: CoordinateSystem.h:38
viskores::IdComponent AddCoordinateSystem(const viskores::cont::CoordinateSystem &cs)
Adds the given CoordinateSystem to the DataSet.
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
static viskores::cont::DataSet Create(const CoordsType &coords, const viskores::Id3 &dims, const viskores::Id &cellSetDim, const std::string &coordsNm="coords")
Definition: DataSetBuilderCurvilinear.h:114
#define VISKORES_ASSERT(condition)
Definition: Assert.h:51
static viskores::cont::DataSet Create(const CoordsType &coords, const viskores::Id2 &dims, const std::string &coordsNm="coords")
Definition: DataSetBuilderCurvilinear.h:97
Defines a 1-, 2-, or 3-dimensional structured grid of points.
Definition: CastAndCall.h:40
This class is thrown when a Viskores function or method encounters an invalid value that inhibits pro...
Definition: ErrorBadValue.h:33
static viskores::cont::DataSet Create(const std::vector< viskores::Vec< T, 3 >> &points, const viskores::Id3 &dims, const std::string &coordsNm="coords")
Definition: DataSetBuilderCurvilinear.h:79
static viskores::cont::DataSet Create(const std::vector< T > &xVals, const std::string &coordsNm="coords")
Definition: DataSetBuilderCurvilinear.h:37
static viskores::cont::DataSet Create(const CoordsType &coords, const viskores::Id3 &dims, const std::string &coordsNm="coords")
Definition: DataSetBuilderCurvilinear.h:89
void SetPointDimensions(SchedulingRangeType dimensions)
Set the dimensions of the structured array of points.
Definition: CellSetStructured.h:66
static viskores::cont::DataSet Create(const CoordsType &coords, const std::string &coordsNm="coords")
Definition: DataSetBuilderCurvilinear.h:105
static viskores::cont::DataSet Create(const std::vector< T > &xVals, const std::vector< T > &yVals, const viskores::Id2 &dims, const std::string &coordsNm="coords")
Definition: DataSetBuilderCurvilinear.h:50
viskores::cont::ArrayHandleBasic< T > make_ArrayHandle(const T *array, viskores::Id numberOfValues, viskores::CopyFlag copy)
A convenience function for creating an ArrayHandle from a standard C array.
Definition: ArrayHandleBasic.h:285
static viskores::cont::DataSet Create(const std::vector< T > &xVals, const std::vector< T > &yVals, const std::vector< T > &zVals, const viskores::Id3 &dims, const std::string &coordsNm="coords")
Definition: DataSetBuilderCurvilinear.h:64
void SetCellSet(const CellSetType &cellSet)
Definition: DataSet.h:415