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

Method GetOrder

Common/DataModel/vtkHigherOrderCurve.cxx:283–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283const int* vtkHigherOrderCurve::GetOrder()
284{
285 vtkIdType npts = this->Points->GetNumberOfPoints();
286 if (this->Order[1] != npts)
287 {
288 int pointsPerAxis = static_cast<int>(npts); // number of points along each axis
289 this->Order[0] = pointsPerAxis - 1; // order 1 is linear, 2 is quadratic, ...
290 this->Order[1] = pointsPerAxis;
291 this->CellScalars->SetNumberOfTuples(pointsPerAxis);
292 }
293 return this->Order;
294}
295
296bool vtkHigherOrderCurve::PointCountSupportsUniformOrder(vtkIdType pointsPerCell)
297{

Callers 8

PrintSelfMethod · 0.95
EvaluatePositionMethod · 0.95
ContourMethod · 0.95
ClipMethod · 0.95
IntersectWithLineMethod · 0.95
TriangulateLocalIdsMethod · 0.95
SetParametricCoordsMethod · 0.95
PrepareApproxDataMethod · 0.95

Calls 2

GetNumberOfPointsMethod · 0.45
SetNumberOfTuplesMethod · 0.45

Tested by

no test coverage detected