MCPcopy Create free account
hub / github.com/Kitware/VTK / GetNumberOfApproximatingWedges

Method GetNumberOfApproximatingWedges

Common/DataModel/vtkHigherOrderWedge.cxx:923–942  ·  view source on GitHub ↗

\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

Source from the content-addressed store, hash-verified

921 * triangles (a serendipity element).
922 */
923int 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.
945vtkWedge* vtkHigherOrderWedge::GetApprox()

Callers 4

EvaluatePositionMethod · 0.95
ContourMethod · 0.95
ClipMethod · 0.95
TriangulateLocalIdsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected