NUMCXX  0.13.20181108
Numerical library for small projects and teaching purposes
Functions
30-triangle.cxx File Reference
+ Include dependency graph for 30-triangle.cxx:

Go to the source code of this file.

Functions

int main (void)
 

Function Documentation

int main ( void  )
Examples:
30-triangle.cxx.

Definition at line 20 of file 30-triangle.cxx.

21 {
22  auto pGeometry=numcxx::Geometry::create();
23  pGeometry->set_points({
24  {0,0},
25  {1,0},
26  {1,1}});
27  pGeometry->set_bfaces({
28  {0,1},
29  {1,2},
30  {2,0}});
31  pGeometry->set_bfaceregions({1,2,3});
32 
33  pGeometry->set_regionpoints({{0.5,0.5}});
34  pGeometry->set_regionnumbers({1});
35  pGeometry->set_regionvolumes({0.01});
36 
37 
38 
39  auto pGrid=numcxx::SimpleGrid::create(pGeometry,"zpaAqV");
40 
41 
42  #ifdef VTKFIG
43  auto griddata=numcxx::vtkfigDataSet(pGrid);
44  auto frame=vtkfig::Frame::New();
45  auto gridview=vtkfig::GridView::New();
46  gridview->SetData(griddata);
47  frame->AddFigure(gridview);
48  frame->Interact();
49  #endif
50 }
static std::shared_ptr< Geometry > create()
Definition: geometry.hxx:73
static std::shared_ptr< SimpleGrid > create(const Geometry &geometry, const std::string triangle_flags)
Static constructor from reference to geometry.
Definition: simplegrid.hxx:35

+ Here is the call graph for this function: