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

Method Build1DCellPoints

Filters/HyperTree/vtkHyperTreeGridFeatureEdges.cxx:335–352  ·  view source on GitHub ↗

----------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

333
334//----------------------------------------------------------------------------------------------
335vtkSmartPointer<vtkPoints> vtkHyperTreeGridFeatureEdges::Build1DCellPoints(
336 vtkHyperTreeGridNonOrientedGeometryCursor* cursor)
337{
338 vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New();
339 points->SetNumberOfPoints(2);
340
341 // Retrieve intercept tuple and type
342 double* cellOrigin = cursor->GetOrigin();
343 double* cellSize = cursor->GetSize();
344
345 // Compute points
346 std::vector<double> xyz(cellOrigin, cellOrigin + 3);
347 points->SetPoint(0, xyz.data());
348 xyz[this->OrientationAxe1D] += cellSize[this->OrientationAxe1D];
349 points->SetPoint(1, xyz.data());
350
351 return points;
352}
353
354//----------------------------------------------------------------------------------------------
355vtkSmartPointer<vtkPoints> vtkHyperTreeGridFeatureEdges::Build2DCellPoints(

Callers 1

Calls 6

NewFunction · 0.50
SetNumberOfPointsMethod · 0.45
GetOriginMethod · 0.45
GetSizeMethod · 0.45
SetPointMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected