NUMCXX  0.13.20181108
Numerical library for small projects and teaching purposes
vtkfig-simplegrid.h
Go to the documentation of this file.
1 #include <vtkfigDataSet.h>
2 #include <numcxx/simplegrid.hxx>
3 
4 namespace numcxx
5 {
6 
7  #ifdef VTKFIG
8  inline std::shared_ptr<vtkfig::dataset> vtkfigDataSet(std::shared_ptr<SimplexGrid> pGrid)
9  {
10  auto griddata=vtkfig::DataSet::New();
11  griddata->SetSimplexGrid(2,*(pGrid->points), *(pGrid->cells));
12  griddata->SetSimplexGridBoundaryCells(*(pGrid->bfaces));
13  griddata->SetCellRegions(*(pGrid->cellregions));
14  griddata->SetBoundaryCellRegions(*(pGrid->bfaceregions));
15  }
16  #endif
17 
18 
19 }
Header for simple grid data class.
Numcxx template library.
Definition: expression.ixx:41