From: wolf Date: Mon, 25 Jul 2005 19:23:00 +0000 (+0000) Subject: Create data also for 2+1d X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=084ac6f275b57897b8b32cd0408ead51c8015b19;p=dealii-svn.git Create data also for 2+1d git-svn-id: https://svn.dealii.org/trunk@11194 0785d39b-7218-0410-832d-ea1e28bc413d --- 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()); };