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

Function InsertAFace

Filters/Geometry/vtkGeometryFilter.cxx:1013–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1011//--------------------------------------------------------------------------
1012template <typename TInputIdType>
1013inline void InsertAFace(FaceForwardList<TInputIdType>& faceList, const vtkIdType& cellId,
1014 const vtkIdType numFacePoints, const vtkIdType* facePointIds, const bool& isGhost)
1015{
1016#define INSERT_STATIC_FACE(N) \
1017 case N: \
1018 faceList.Insert(StaticFace<N, TInputIdType>(cellId, facePointIds, isGhost)); \
1019 break;
1020 switch (numFacePoints)
1021 {
1022 INSERT_STATIC_FACE(3)
1023 INSERT_STATIC_FACE(4)
1024 INSERT_STATIC_FACE(5)
1025 INSERT_STATIC_FACE(6)
1026 INSERT_STATIC_FACE(7)
1027 INSERT_STATIC_FACE(8)
1028 INSERT_STATIC_FACE(9)
1029 INSERT_STATIC_FACE(10)
1030 INSERT_STATIC_FACE(11)
1031 INSERT_STATIC_FACE(12)
1032 INSERT_STATIC_FACE(13)
1033 INSERT_STATIC_FACE(14)
1034 INSERT_STATIC_FACE(15)
1035 INSERT_STATIC_FACE(16)
1036 INSERT_STATIC_FACE(17)
1037 INSERT_STATIC_FACE(18)
1038 INSERT_STATIC_FACE(19)
1039 INSERT_STATIC_FACE(20)
1040 default:
1041 faceList.Insert(DynamicFace<TInputIdType>(cellId, numFacePoints, facePointIds, isGhost));
1042 break;
1043 }
1044#undef INSERT_STATIC_FACE // Clean up macro
1045}
1046
1047//--------------------------------------------------------------------------
1048// Given a cell and a bunch of supporting objects (to support computing and

Callers 1

ExtractCellGeometryFunction · 0.85

Calls 1

InsertMethod · 0.45

Tested by

no test coverage detected