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

Method IsPointUsedByCell

Common/DataModel/vtkPolyData.h:788–803  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

786
787//------------------------------------------------------------------------------
788inline int vtkPolyData::IsPointUsedByCell(vtkIdType ptId, vtkIdType cellId)
789{
790 vtkIdType npts;
791 const vtkIdType* pts;
792
793 this->GetCellPoints(cellId, npts, pts);
794 for (vtkIdType i = 0; i < npts; i++)
795 {
796 if (pts[i] == ptId)
797 {
798 return 1;
799 }
800 }
801
802 return 0;
803}
804
805//------------------------------------------------------------------------------
806inline void vtkPolyData::DeletePoint(vtkIdType ptId)

Callers 1

IsEdgeMethod · 0.95

Calls 1

GetCellPointsMethod · 0.95

Tested by

no test coverage detected