NUMCXX  0.13.20181108
Numerical library for small projects and teaching purposes
vtkfig-simplegrid.hxx
Go to the documentation of this file.
1 #include "vtkfigDataSet.h"
7 #include "numcxx/simplegrid.hxx"
8 
9 namespace numcxx
10 {
11 
13  #ifdef VTKFIG
14 
15  inline std::shared_ptr<vtkfig::DataSet> vtkfigDataSet(const SimpleGrid &Grid)
16  {
17  auto griddata=vtkfig::DataSet::New();
18  griddata->SetSimplexGrid(2,Grid.get_points(), Grid.get_cells());
19  griddata->SetSimplexGridBoundaryCells(Grid.get_bfaces());
20  griddata->SetCellRegions(Grid.get_cellregions());
21  griddata->SetBoundaryCellRegions(Grid.get_bfaceregions());
22  return griddata;
23  }
24 
25  inline std::shared_ptr<vtkfig::DataSet> vtkfigDataSet(const std::shared_ptr<SimpleGrid> pGrid)
26  {
27  return vtkfigDataSet(*pGrid);
28  }
29  #endif
30 
31 
32 }
Header for simple grid data class.
Numcxx template library.
Definition: expression.ixx:41