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

Method InsertPointsIntoEdgeTable

Common/DataModel/vtkSimpleCellTessellator.cxx:1408–1429  ·  view source on GitHub ↗

------------------------------------------------------------------------------ This function is supposed to be called only at toplevel (for passing data from third party to the hash point table)

Source from the content-addressed store, hash-verified

1406// This function is supposed to be called only at toplevel (for passing data
1407// from third party to the hash point table)
1408void vtkSimpleCellTessellator::InsertPointsIntoEdgeTable(vtkTriangleTile& tri)
1409{
1410 double global[3];
1411
1412 for (int j = 0; j < 3; j++)
1413 {
1414 // Need to check first if point is not already in the hash table
1415 // since EvaluateLocation / EvaluateTuple are expensive calls
1416 if (!this->EdgeTable->CheckPoint(tri.GetPointId(j)))
1417 {
1418 // it's real space coordinate:
1419 this->GenericCell->EvaluateLocation(0, tri.GetVertex(j), global);
1420
1421 // Then scalar value associated with point:
1422 this->GenericCell->InterpolateTuple(
1423 this->AttributeCollection, tri.GetVertex(j), this->Scalars);
1424
1425 // Put everything in this point hash table
1426 this->EdgeTable->InsertPointAndScalar(tri.GetPointId(j), global, this->Scalars);
1427 }
1428 }
1429}
1430
1431//------------------------------------------------------------------------------
1432//

Callers 1

TriangulateTriangleMethod · 0.95

Calls 6

CheckPointMethod · 0.80
InsertPointAndScalarMethod · 0.80
GetPointIdMethod · 0.45
EvaluateLocationMethod · 0.45
GetVertexMethod · 0.45
InterpolateTupleMethod · 0.45

Tested by

no test coverage detected