------------------------------------------------------------------------------ Description: Extract point `pointId' from the edge table to the output point and output point data.
| 1111 | // Extract point `pointId' from the edge table to the output point and output |
| 1112 | // point data. |
| 1113 | void vtkSimpleCellTessellator::CopyPoint(vtkIdType pointId) |
| 1114 | { |
| 1115 | double point[3]; |
| 1116 | double* p = this->Scalars; |
| 1117 | |
| 1118 | this->EdgeTable->CheckPoint(pointId, point, p); |
| 1119 | // There will some be duplicate points during a while but |
| 1120 | // this is the cost for speed: |
| 1121 | this->TessellatePoints->InsertNextTuple(point); |
| 1122 | // this->TessellatePointData->InsertNextTuple( tess->Scalars ); |
| 1123 | |
| 1124 | int c = this->TessellatePointData->GetNumberOfArrays(); |
| 1125 | vtkDataArray* attribute; |
| 1126 | |
| 1127 | for (int i = 0; i < c; i++) |
| 1128 | { |
| 1129 | attribute = this->TessellatePointData->GetArray(i); |
| 1130 | attribute->InsertNextTuple(p); |
| 1131 | p += attribute->GetNumberOfComponents(); |
| 1132 | } |
| 1133 | } |
| 1134 | |
| 1135 | //------------------------------------------------------------------------------ |
| 1136 | static void Reorder(vtkIdType in[4], vtkIdType order[4]) |
no test coverage detected