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

Method Triangulate

Common/DataModel/vtkCell.cxx:441–455  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

439
440//----------------------------------------------------------------------------
441int vtkCell::Triangulate(int index, vtkIdList* ptIds, vtkPoints* pts)
442{
443 // Convert the local ids to the global ones, plus collect the points
444 if (!this->TriangulateLocalIds(index, ptIds))
445 {
446 return 0;
447 }
448 pts->SetNumberOfPoints(ptIds->GetNumberOfIds());
449 for (int i = 0; i < ptIds->GetNumberOfIds(); i++)
450 {
451 pts->SetPoint(i, this->Points->GetPoint(ptIds->GetId(i)));
452 ptIds->SetId(i, this->PointIds->GetId(ptIds->GetId(i)));
453 }
454 return 1;
455}
456
457//----------------------------------------------------------------------------
458int vtkCell::TriangulateIds(int index, vtkIdList* ptIds)

Callers 12

ContourMethod · 0.45
ClipMethod · 0.45
TriangulateLocalIdsMethod · 0.45
InitializeMethod · 0.45
TriangulateLocalIdsMethod · 0.45
ContourMethod · 0.45
ClipMethod · 0.45
TessellateMethod · 0.45
TestPolyhedron0Function · 0.45
TestPolyhedralCellsInUGFunction · 0.45
TestOECFunction · 0.45
TestOrderedTriangulatorFunction · 0.45

Calls 7

TriangulateLocalIdsMethod · 0.45
SetNumberOfPointsMethod · 0.45
GetNumberOfIdsMethod · 0.45
SetPointMethod · 0.45
GetPointMethod · 0.45
GetIdMethod · 0.45
SetIdMethod · 0.45

Tested by 4

TestPolyhedron0Function · 0.36
TestPolyhedralCellsInUGFunction · 0.36
TestOECFunction · 0.36
TestOrderedTriangulatorFunction · 0.36