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

Method InsertUniquePoint

Common/DataModel/vtkEdgeTable.cxx:554–569  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

552
553//------------------------------------------------------------------------------
554int vtkEdgeTable::InsertUniquePoint(vtkIdType p1, vtkIdType p2, double x[3], vtkIdType& ptId)
555{
556 vtkIdType loc = this->IsEdge(p1, p2);
557
558 if (loc != -1)
559 {
560 ptId = loc;
561 return 0;
562 }
563 else
564 {
565 ptId = this->InsertEdge(p1, p2);
566 this->Points->InsertPoint(ptId, x);
567 return 1;
568 }
569}
570
571//------------------------------------------------------------------------------
572void vtkEdgeTable::PrintSelf(ostream& os, vtkIndent indent)

Callers 15

RequestDataMethod · 0.45
RequestDataMethod · 0.45
XdmfSubsetToVTKMethod · 0.45
RequestDataMethod · 0.45
ReadTimeStepMethod · 0.45
RequestDataMethod · 0.45
ExtractFacesMethod · 0.45
ExtractEdgesMethod · 0.45
ContourMethod · 0.45
ClipMethod · 0.45
ContourMethod · 0.45

Calls 3

IsEdgeMethod · 0.95
InsertEdgeMethod · 0.95
InsertPointMethod · 0.45

Tested by 1