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

Function GetAssociation

IO/CatalystConduit/vtkConduitToDataObject.cxx:1229–1241  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1227
1228//----------------------------------------------------------------------------
1229int GetAssociation(const std::string& assoc)
1230{
1231 if (assoc == "element")
1232 {
1233 return vtkDataObject::CELL;
1234 }
1235 else if (assoc == "vertex")
1236 {
1237 return vtkDataObject::POINT;
1238 }
1239
1240 throw std::runtime_error("unsupported association " + assoc);
1241}
1242VTK_ABI_NAMESPACE_END
1243} // vtkDataObjectToConduit namespace

Callers 2

FillPartitionedDataSetFunction · 0.85
AddFieldDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected