38 if (which_type == Z_HEX08)
40 const cellModel&
hex = *(cellModeller::lookup(
"hex"));
44 for (label celli=0; celli<nCells; celli++)
46 const cellShape& cellShape = cellShapes[celli];
47 const cellModel& cellModel = cellShape.model();
57 if (which_type == Z_PEN06)
59 const cellModel& prism = *(cellModeller::lookup(
"prism"));
62 for (label n=0; n<nCells; n++)
64 const cellShape& cellShape = cellShapes[n];
65 const cellModel& cellModel = cellShape.model();
67 if (cellModel == prism)
75 if (which_type == Z_PYR05)
77 const cellModel& pyr = *(cellModeller::lookup(
"pyr"));
80 for (label n=0; n<nCells; n++)
82 const cellShape& cellShape = cellShapes[n];
83 const cellModel& cellModel = cellShape.model();
93 if (which_type == Z_TET04)
95 const cellModel& tet = *(cellModeller::lookup(
"tet"));
98 for (label n=0; n<nCells; n++)
100 const cellShape& cellShape = cellShapes[n];
101 const cellModel& cellModel = cellShape.model();
103 if (cellModel == tet)
110 if (which_type == Z_NFACED)
115 for (label n=0; n<nCells; n++)
118 label nFacesInCell = cells[n].size();
120 if ((nFacesInCell == 6) && (points.size() == 8))
122 else if ((nFacesInCell == 4) && (points.size() == 4))
124 else if (nFacesInCell == 5)
126 if (points.size() == 6)
128 else if (points.size() == 5)