From ca36f7ec6c989ae2be4030c288f497b09d81dfc0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 25 Jul 2005 19:23:00 +0000 Subject: [PATCH] Create data also for 2+1d git-svn-id: https://svn.dealii.org/trunk@11194 0785d39b-7218-0410-832d-ea1e28bc413d --- .../deal.II/source/numerics/data_out_stack.cc | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/deal.II/deal.II/source/numerics/data_out_stack.cc b/deal.II/deal.II/source/numerics/data_out_stack.cc index 53c33bc707..90413b9533 100644 --- a/deal.II/deal.II/source/numerics/data_out_stack.cc +++ b/deal.II/deal.II/source/numerics/data_out_stack.cc @@ -276,6 +276,33 @@ void DataOutStack::build_patches (const unsigned int n_subdivisions) parameter); break; + case 2: + patch->vertices[0] = Point(cell->vertex(0)(0), + cell->vertex(0)(1), + parameter-parameter_step); + patch->vertices[1] = Point(cell->vertex(1)(0), + cell->vertex(1)(1), + parameter-parameter_step); + patch->vertices[2] = Point(cell->vertex(2)(0), + cell->vertex(2)(1), + parameter-parameter_step); + patch->vertices[3] = Point(cell->vertex(3)(0), + cell->vertex(3)(1), + parameter-parameter_step); + patch->vertices[4] = Point(cell->vertex(0)(0), + cell->vertex(0)(1), + parameter); + patch->vertices[5] = Point(cell->vertex(1)(0), + cell->vertex(1)(1), + parameter); + patch->vertices[6] = Point(cell->vertex(2)(0), + cell->vertex(2)(1), + parameter); + patch->vertices[7] = Point(cell->vertex(3)(0), + cell->vertex(3)(1), + parameter); + break; + default: Assert (false, ExcNotImplemented()); }; -- 2.39.5