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

Method CopyPoint

Common/DataModel/vtkSimpleCellTessellator.cxx:1113–1133  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Extract point `pointId' from the edge table to the output point and output point data.

Source from the content-addressed store, hash-verified

1111// Extract point `pointId' from the edge table to the output point and output
1112// point data.
1113void 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//------------------------------------------------------------------------------
1136static void Reorder(vtkIdType in[4], vtkIdType order[4])

Callers 1

RefineMethod · 0.45

Calls 5

CheckPointMethod · 0.80
InsertNextTupleMethod · 0.45
GetNumberOfArraysMethod · 0.45
GetArrayMethod · 0.45
GetNumberOfComponentsMethod · 0.45

Tested by

no test coverage detected