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

Function GetEdgeAttributes

Filters/General/vtkFiniteElementFieldDistributor.cxx:113–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113std::vector<double> GetEdgeAttributes(const std::string& name, vtkCellData* cd, vtkIdType cellId)
114{
115 std::vector<double> attrs;
116 vtkDataArray* coeffs = cd->GetArray(::GetEdgeCoefficientArrayName(name).c_str());
117 if (coeffs == nullptr)
118 {
119 return attrs;
120 }
121 const int nEdges = coeffs->GetNumberOfComponents();
122 attrs.resize(nEdges);
123 coeffs->GetTuple(cellId, attrs.data());
124 return attrs;
125}
126
127std::vector<double> GetFaceAttributes(const std::string& name, vtkCellData* cd, vtkIdType cellId)
128{

Callers 1

Calls 7

GetArrayMethod · 0.45
c_strMethod · 0.45
GetNumberOfComponentsMethod · 0.45
resizeMethod · 0.45
GetTupleMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected