----------------------------------------------------------------------------------------------
| 333 | |
| 334 | //---------------------------------------------------------------------------------------------- |
| 335 | vtkSmartPointer<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 | //---------------------------------------------------------------------------------------------- |
| 355 | vtkSmartPointer<vtkPoints> vtkHyperTreeGridFeatureEdges::Build2DCellPoints( |
no test coverage detected