------------------------------------------------------------------------------
| 336 | |
| 337 | //------------------------------------------------------------------------------ |
| 338 | void vtkLinearTransformCellLocator::ShallowCopy(vtkAbstractCellLocator* locator) |
| 339 | { |
| 340 | auto cellLocator = vtkLinearTransformCellLocator::SafeDownCast(locator); |
| 341 | if (!cellLocator) |
| 342 | { |
| 343 | vtkErrorMacro("Cannot cast " << locator->GetClassName() << " to " << this->GetClassName()); |
| 344 | } |
| 345 | // we only copy what's actually used by vtkLinearTransformCellLocator |
| 346 | this->SetCellLocator(cellLocator->GetCellLocator()); |
| 347 | this->Transform = cellLocator->Transform; |
| 348 | this->InverseTransform = cellLocator->InverseTransform; |
| 349 | this->IsLinearTransformation = cellLocator->IsLinearTransformation; |
| 350 | this->UseAllPoints = cellLocator->UseAllPoints; |
| 351 | this->BuildTime.Modified(); |
| 352 | } |
| 353 | |
| 354 | //------------------------------------------------------------------------------ |
| 355 | int vtkLinearTransformCellLocator::IntersectWithLine(const double p1[3], const double p2[3], |
nothing calls this directly
no test coverage detected