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

Method SetParametricCoords

Common/DataModel/vtkHigherOrderWedge.cxx:583–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583void vtkHigherOrderWedge::SetParametricCoords()
584{
585 const int* order = this->GetOrder();
586#ifdef VTK_21_POINT_WEDGE
587 if (order[3] == 21)
588 {
589 return;
590 }
591#endif
592 if (!this->PointParametricCoordinates)
593 {
594 this->PointParametricCoordinates = vtkSmartPointer<vtkPoints>::New();
595 this->PointParametricCoordinates->SetDataTypeToDouble();
596 }
597
598 // Ensure Order is up-to-date and check that current point size matches:
599 if (static_cast<int>(this->PointParametricCoordinates->GetNumberOfPoints()) != order[3])
600 {
601 this->PointParametricCoordinates->Initialize();
602 vtkHigherOrderInterpolation::AppendWedgeCollocationPoints(
603 this->PointParametricCoordinates, this->Order);
604 }
605}
606
607double* vtkHigherOrderWedge::GetParametricCoords()
608{

Callers 6

GetParametricCoordsMethod · 0.95
GetApproximateQuadMethod · 0.45
GetApproximateHexMethod · 0.45
GetApproximateLineMethod · 0.45

Calls 4

GetOrderMethod · 0.95
NewFunction · 0.50
GetNumberOfPointsMethod · 0.45
InitializeMethod · 0.45

Tested by

no test coverage detected