| 1288 | } |
| 1289 | |
| 1290 | void vtkHigherOrderWedge::SetOrder(int s, int t, int u, vtkIdType numPts) |
| 1291 | { |
| 1292 | if (s != t) |
| 1293 | vtkErrorMacro("For wedges, the first two degrees should be equals."); |
| 1294 | |
| 1295 | if (this->PointParametricCoordinates && (Order[0] != s || Order[2] != u)) |
| 1296 | this->PointParametricCoordinates->Reset(); |
| 1297 | Order[0] = s; |
| 1298 | Order[1] = s; |
| 1299 | Order[2] = u; |
| 1300 | |
| 1301 | #ifdef VTK_21_POINT_WEDGE |
| 1302 | if (numPts == 21) |
| 1303 | { |
| 1304 | Order[3] = numPts; |
| 1305 | if ((s != 2) || (u != 2)) |
| 1306 | vtkErrorMacro("For Wedge 21, the degrees should be quadratic."); |
| 1307 | } |
| 1308 | else |
| 1309 | { |
| 1310 | Order[3] = (s + 1) * (s + 2) / 2 * (u + 1); |
| 1311 | if (Order[3] != numPts) |
| 1312 | vtkErrorMacro("The degrees are not correctly set in the input file."); |
| 1313 | } |
| 1314 | #else |
| 1315 | Order[3] = (s + 1) * (s + 2) / 2 * (u + 1); |
| 1316 | if (Order[3] != numPts) |
| 1317 | vtkErrorMacro("The degrees are not correctly set in the input file."); |
| 1318 | #endif |
| 1319 | } |
| 1320 | |
| 1321 | const int* vtkHigherOrderWedge::GetOrder() |
| 1322 | { |
no test coverage detected