\brief Return the number of linear wedges we use to approximate this nonlinear wedge. * * Note that \a order must be a pointer to an array of **four** integers. * The first 3 values specify the order along the r, s, and t parametric axes * of the wedge, respectively. * The first 2 values must be identical. * * The final (fourth) value must be the number of points in the wedge's connectivity
| 921 | * triangles (a serendipity element). |
| 922 | */ |
| 923 | int vtkHigherOrderWedge::GetNumberOfApproximatingWedges(const int* order) |
| 924 | { |
| 925 | if (!order) |
| 926 | { |
| 927 | return 0; |
| 928 | } |
| 929 | if (order[1] != order[0]) |
| 930 | { |
| 931 | vtkGenericWarningMacro("Wedge elements must have same order in " |
| 932 | "first 2 dimensions, but had orders " |
| 933 | << order[0] << " and " << order[1] << " instead."); |
| 934 | } |
| 935 | #ifdef VTK_21_POINT_WEDGE |
| 936 | if (order[3] == 21) |
| 937 | { |
| 938 | return 12; |
| 939 | } |
| 940 | #endif |
| 941 | return order[0] * order[0] * order[2]; |
| 942 | } |
| 943 | |
| 944 | /// Return a linear wedge used to approximate a region of the nonlinear wedge. |
| 945 | vtkWedge* vtkHigherOrderWedge::GetApprox() |
no outgoing calls
no test coverage detected