------------------------------------------------------------------------------ Transform a series of points.
| 144 | //------------------------------------------------------------------------------ |
| 145 | // Transform a series of points. |
| 146 | void vtkAbstractTransform::TransformPoints(vtkPoints* inPts, vtkPoints* outPts) |
| 147 | { |
| 148 | this->Update(); |
| 149 | |
| 150 | vtkIdType n = inPts->GetNumberOfPoints(); |
| 151 | vtkIdType m = outPts->GetNumberOfPoints(); |
| 152 | outPts->SetNumberOfPoints(m + n); |
| 153 | |
| 154 | vtkSMPTools::For(0, n, |
| 155 | [&](vtkIdType ptId, vtkIdType endPtId) |
| 156 | { |
| 157 | double point[3]; |
| 158 | for (; ptId < endPtId; ++ptId) |
| 159 | { |
| 160 | inPts->GetPoint(ptId, point); |
| 161 | this->InternalTransformPoint(point, point); |
| 162 | outPts->SetPoint(m + ptId, point); |
| 163 | } |
| 164 | }); |
| 165 | } |
| 166 | |
| 167 | //------------------------------------------------------------------------------ |
| 168 | // Transform the normals and vectors using the derivative of the |
nothing calls this directly
no test coverage detected