Salome HOME
Bug with FindClosestTupleIdAlg fixed (preventing the threshold to be null)
[tools/medcoupling.git] / src / MEDCoupling / MEDCoupling1GTUMesh.hxx
1 // Copyright (C) 2007-2020  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 // Author : Anthony Geay (CEA/DEN)
20
21 #ifndef __PARAMEDMEM_MEDCOUPLING1GTUMESH_HXX__
22 #define __PARAMEDMEM_MEDCOUPLING1GTUMESH_HXX__
23
24 #include "MEDCoupling.hxx"
25 #include "MCType.hxx"
26 #include "MEDCouplingPointSet.hxx"
27 #include "MEDCouplingMemArray.hxx"
28 #include "MCAuto.hxx"
29
30 #include "CellModel.hxx"
31
32 namespace MEDCoupling
33 {
34   class MEDCoupling1GTUUMeshCellIterator;
35
36   class MEDCoupling1GTUMesh : public MEDCouplingPointSet
37   {
38   public:
39     MEDCOUPLING_EXPORT static MEDCoupling1GTUMesh *New(const std::string& name, INTERP_KERNEL::NormalizedCellType type);
40     MEDCOUPLING_EXPORT static MEDCoupling1GTUMesh *New(const MEDCouplingUMesh *m);
41     MEDCOUPLING_EXPORT const INTERP_KERNEL::CellModel& getCellModel() const;
42     MEDCOUPLING_EXPORT INTERP_KERNEL::NormalizedCellType getCellModelEnum() const;
43     MEDCOUPLING_EXPORT int getMeshDimension() const;
44     MEDCOUPLING_EXPORT DataArrayIdType *giveCellsWithType(INTERP_KERNEL::NormalizedCellType type) const;
45     MEDCOUPLING_EXPORT mcIdType getNumberOfCellsWithType(INTERP_KERNEL::NormalizedCellType type) const;
46     MEDCOUPLING_EXPORT INTERP_KERNEL::NormalizedCellType getTypeOfCell(mcIdType cellId) const;
47     MEDCOUPLING_EXPORT std::set<INTERP_KERNEL::NormalizedCellType> getAllGeoTypes() const;
48     MEDCOUPLING_EXPORT std::vector<mcIdType> getDistributionOfTypes() const;
49     MEDCOUPLING_EXPORT void splitProfilePerType(const DataArrayIdType *profile, std::vector<mcIdType>& code, std::vector<DataArrayIdType *>& idsInPflPerType, std::vector<DataArrayIdType *>& idsPerType, bool smartPflKiller=true) const;
50     MEDCOUPLING_EXPORT DataArrayIdType *checkTypeConsistencyAndContig(const std::vector<mcIdType>& code, const std::vector<const DataArrayIdType *>& idsPerType) const;
51     MEDCOUPLING_EXPORT void writeVTKLL(std::ostream& ofs, const std::string& cellData, const std::string& pointData, DataArrayByte *byteData) const;
52     MEDCOUPLING_EXPORT std::string getVTKDataSetType() const;
53     MEDCOUPLING_EXPORT std::string getVTKFileExtension() const;
54     //
55     MEDCOUPLING_EXPORT std::size_t getHeapMemorySizeWithoutChildren() const;
56     MEDCOUPLING_EXPORT mcIdType getNodalConnectivityLength() const;
57     MEDCOUPLING_EXPORT bool isEqualIfNotWhy(const MEDCouplingMesh *other, double prec, std::string& reason) const;
58     MEDCOUPLING_EXPORT bool isEqualWithoutConsideringStr(const MEDCouplingMesh *other, double prec) const;
59     MEDCOUPLING_EXPORT void checkConsistencyLight() const;
60     MEDCOUPLING_EXPORT DataArrayDouble *computeCellCenterOfMass() const;
61     MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureField(bool isAbs) const;
62     MEDCOUPLING_EXPORT MEDCouplingFieldDouble *getMeasureFieldOnNode(bool isAbs) const;
63     MEDCOUPLING_EXPORT mcIdType getCellContainingPoint(const double *pos, double eps) const;
64     MEDCOUPLING_EXPORT void getCellsContainingPoint(const double *pos, double eps, std::vector<mcIdType>& elts) const;
65     MEDCOUPLING_EXPORT MEDCouplingFieldDouble *buildOrthogonalField() const;
66     MEDCOUPLING_EXPORT DataArrayIdType *getCellsInBoundingBox(const double *bbox, double eps) const;
67     MEDCOUPLING_EXPORT DataArrayIdType *getCellsInBoundingBox(const INTERP_KERNEL::DirectedBoundingBox& bbox, double eps);
68     MEDCOUPLING_EXPORT MEDCouplingPointSet *buildFacePartOfMySelfNode(const mcIdType *start, const mcIdType *end, bool fullyIn) const;
69     MEDCOUPLING_EXPORT DataArrayIdType *findBoundaryNodes() const;
70     MEDCOUPLING_EXPORT MEDCouplingPointSet *buildBoundaryMesh(bool keepCoords) const;
71     MEDCOUPLING_EXPORT void findCommonCells(int compType, mcIdType startCellId, DataArrayIdType *& commonCellsArr, DataArrayIdType *& commonCellsIArr) const;
72     MEDCOUPLING_EXPORT static MEDCouplingUMesh *AggregateOnSameCoordsToUMesh(const std::vector< const MEDCoupling1GTUMesh *>& parts);
73   public:
74     MEDCOUPLING_EXPORT virtual void allocateCells(mcIdType nbOfCells=0) = 0;
75     MEDCOUPLING_EXPORT virtual void insertNextCell(const mcIdType *nodalConnOfCellBg, const mcIdType *nodalConnOfCellEnd) = 0;
76     MEDCOUPLING_EXPORT virtual DataArrayIdType *getNodalConnectivity() const = 0;
77     MEDCOUPLING_EXPORT virtual void checkConsistencyOfConnectivity() const = 0;
78   protected:
79     MEDCoupling1GTUMesh(const std::string& name, const INTERP_KERNEL::CellModel& cm);
80     MEDCoupling1GTUMesh(const MEDCoupling1GTUMesh& other, bool recDeepCpy);
81     MEDCoupling1GTUMesh();
82   protected:
83     const INTERP_KERNEL::CellModel *_cm;
84   };
85
86   class MEDCoupling1DGTUMesh;
87   class MEDCouplingCMesh;
88
89   class MEDCoupling1SGTUMesh : public MEDCoupling1GTUMesh
90   {
91   public:
92     MEDCOUPLING_EXPORT static MEDCoupling1SGTUMesh *New(const std::string& name, INTERP_KERNEL::NormalizedCellType type);
93     MEDCOUPLING_EXPORT static MEDCoupling1SGTUMesh *New(const MEDCouplingUMesh *m);
94     //! useless constructor only for CORBA -> not swigged
95     MEDCOUPLING_EXPORT static MEDCoupling1SGTUMesh *New();
96     MEDCOUPLING_EXPORT std::string getClassName() const override { return std::string("MEDCoupling1SGTUMesh"); }
97     // Copy methods
98     MEDCOUPLING_EXPORT MEDCoupling1SGTUMesh *clone(bool recDeepCpy) const;
99     MEDCOUPLING_EXPORT MEDCoupling1SGTUMesh *deepCopy() const;
100     MEDCOUPLING_EXPORT MEDCoupling1SGTUMesh *deepCopyConnectivityOnly() const;
101     // overload of TimeLabel and RefCountObject
102     MEDCOUPLING_EXPORT void updateTime() const;
103     MEDCOUPLING_EXPORT std::size_t getHeapMemorySizeWithoutChildren() const;
104     MEDCOUPLING_EXPORT std::vector<const BigMemoryObject *> getDirectChildrenWithNull() const;
105     // overload of MEDCouplingMesh
106     MEDCOUPLING_EXPORT MEDCouplingMeshType getType() const { return SINGLE_STATIC_GEO_TYPE_UNSTRUCTURED; }
107
108     MEDCOUPLING_EXPORT bool isEqualIfNotWhy(const MEDCouplingMesh *other, double prec, std::string& reason) const;
109     MEDCOUPLING_EXPORT bool isEqualWithoutConsideringStr(const MEDCouplingMesh *other, double prec) const;
110     MEDCOUPLING_EXPORT void checkFastEquivalWith(const MEDCouplingMesh *other, double prec) const;
111     MEDCOUPLING_EXPORT void checkConsistencyLight() const;
112     MEDCOUPLING_EXPORT void checkConsistency(double eps=1e-12) const;
113     MEDCOUPLING_EXPORT mcIdType getNumberOfCells() const;
114     MEDCOUPLING_EXPORT DataArrayIdType *computeNbOfNodesPerCell() const;
115     MEDCOUPLING_EXPORT DataArrayIdType *computeNbOfFacesPerCell() const;
116     MEDCOUPLING_EXPORT DataArrayIdType *computeEffectiveNbOfNodesPerCell() const;
117     MEDCOUPLING_EXPORT void getNodeIdsOfCell(mcIdType cellId, std::vector<mcIdType>& conn) const;
118     MEDCOUPLING_EXPORT std::string simpleRepr() const;
119     MEDCOUPLING_EXPORT std::string advancedRepr() const;
120     MEDCOUPLING_EXPORT DataArrayDouble *computeIsoBarycenterOfNodesPerCell() const;
121     MEDCOUPLING_EXPORT void renumberCells(const mcIdType *old2NewBg, bool check=true);
122     MEDCOUPLING_EXPORT MEDCouplingMesh *mergeMyselfWith(const MEDCouplingMesh *other) const;
123     MEDCOUPLING_EXPORT MEDCouplingUMesh *buildUnstructured() const;
124     MEDCOUPLING_EXPORT DataArrayIdType *simplexize(int policy);
125     MEDCOUPLING_EXPORT void reprQuickOverview(std::ostream& stream) const;
126     // overload of MEDCouplingPointSet
127     MEDCOUPLING_EXPORT void shallowCopyConnectivityFrom(const MEDCouplingPointSet *other);
128     MEDCOUPLING_EXPORT MEDCouplingPointSet *mergeMyselfWithOnSameCoords(const MEDCouplingPointSet *other) const;
129     MEDCOUPLING_EXPORT MEDCouplingPointSet *buildPartOfMySelfKeepCoords(const mcIdType *begin, const mcIdType *end) const;
130     MEDCOUPLING_EXPORT MEDCouplingPointSet *buildPartOfMySelfKeepCoordsSlice(mcIdType start, mcIdType end, mcIdType step) const;
131     MEDCOUPLING_EXPORT void computeNodeIdsAlg(std::vector<bool>& nodeIdsInUse) const;
132     MEDCOUPLING_EXPORT void getReverseNodalConnectivity(DataArrayIdType *revNodal, DataArrayIdType *revNodalIndx) const;
133     MEDCOUPLING_EXPORT void checkFullyDefined() const;
134     MEDCOUPLING_EXPORT bool isEmptyMesh(const std::vector<mcIdType>& tinyInfo) const;
135     MEDCOUPLING_EXPORT DataArrayIdType *computeFetchedNodeIds() const;
136     MEDCOUPLING_EXPORT DataArrayIdType *getNodeIdsInUse(mcIdType& nbrOfNodesInUse) const;
137     MEDCOUPLING_EXPORT void renumberNodesWithOffsetInConn(mcIdType offset);
138     MEDCOUPLING_EXPORT void renumberNodesInConn(const INTERP_KERNEL::HashMap<mcIdType,mcIdType>& newNodeNumbersO2N);
139     MEDCOUPLING_EXPORT void renumberNodesInConn(const std::map<mcIdType,mcIdType>& newNodeNumbersO2N) override;
140     MEDCOUPLING_EXPORT void renumberNodesInConn(const mcIdType *newNodeNumbersO2N);
141     MEDCOUPLING_EXPORT void fillCellIdsToKeepFromNodeIds(const mcIdType *begin, const mcIdType *end, bool fullyIn, DataArrayIdType *&cellIdsKeptArr) const;
142     MEDCOUPLING_EXPORT mcIdType getNumberOfNodesInCell(mcIdType cellId) const;
143     MEDCOUPLING_EXPORT DataArrayDouble *getBoundingBoxForBBTree(double arcDetEps=1e-12) const;
144     MEDCOUPLING_EXPORT MEDCouplingFieldDouble *computeDiameterField() const;
145     MEDCOUPLING_EXPORT void invertOrientationOfAllCells();
146     // overload of MEDCoupling1GTUMesh
147     MEDCOUPLING_EXPORT void checkConsistencyOfConnectivity() const;
148     MEDCOUPLING_EXPORT void allocateCells(mcIdType nbOfCells=0);
149     MEDCOUPLING_EXPORT void insertNextCell(const mcIdType *nodalConnOfCellBg, const mcIdType *nodalConnOfCellEnd);
150   public://specific
151     MEDCOUPLING_EXPORT void setNodalConnectivity(DataArrayIdType *nodalConn);
152     MEDCOUPLING_EXPORT DataArrayIdType *getNodalConnectivity() const;
153     MEDCOUPLING_EXPORT mcIdType getNumberOfNodesPerCell() const;
154     MEDCOUPLING_EXPORT static MEDCoupling1SGTUMesh *Merge1SGTUMeshes(const MEDCoupling1SGTUMesh *mesh1, const MEDCoupling1SGTUMesh *mesh2);
155     MEDCOUPLING_EXPORT static MEDCoupling1SGTUMesh *Merge1SGTUMeshes(std::vector<const MEDCoupling1SGTUMesh *>& a);
156     MEDCOUPLING_EXPORT static MEDCoupling1SGTUMesh *Merge1SGTUMeshesOnSameCoords(std::vector<const MEDCoupling1SGTUMesh *>& a);
157     MEDCOUPLING_EXPORT MEDCoupling1SGTUMesh *buildSetInstanceFromThis(std::size_t spaceDim) const;
158     MEDCOUPLING_EXPORT MEDCoupling1GTUMesh *computeDualMesh() const;
159     MEDCOUPLING_EXPORT DataArrayIdType *sortHexa8EachOther();
160     MEDCOUPLING_EXPORT MEDCoupling1SGTUMesh *explodeEachHexa8To6Quad4() const;
161     MEDCOUPLING_EXPORT MEDCouplingCMesh *structurizeMe(DataArrayIdType *& cellPerm, DataArrayIdType *& nodePerm, double eps=1e-12) const;
162   public://serialization
163     MEDCOUPLING_EXPORT void getTinySerializationInformation(std::vector<double>& tinyInfoD, std::vector<mcIdType>& tinyInfo, std::vector<std::string>& littleStrings) const;
164     MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector<mcIdType>& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector<std::string>& littleStrings) const;
165     MEDCOUPLING_EXPORT void serialize(DataArrayIdType *&a1, DataArrayDouble *&a2) const;
166     MEDCOUPLING_EXPORT void unserialization(const std::vector<double>& tinyInfoD, const std::vector<mcIdType>& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2,
167                                             const std::vector<std::string>& littleStrings);
168   private:
169     MEDCoupling1SGTUMesh(const std::string& name, const INTERP_KERNEL::CellModel& cm);
170     MEDCoupling1SGTUMesh(const MEDCoupling1SGTUMesh& other, bool recDeepCpy);
171     MEDCoupling1SGTUMesh();
172   private:
173     void checkNonDynamicGeoType() const;
174     static MEDCoupling1SGTUMesh *Merge1SGTUMeshesLL(std::vector<const MEDCoupling1SGTUMesh *>& a);
175     DataArrayIdType *simplexizePol0();
176     DataArrayIdType *simplexizePol1();
177     DataArrayIdType *simplexizePlanarFace5();
178     DataArrayIdType *simplexizePlanarFace6();
179     MEDCoupling1DGTUMesh *computeDualMesh3D() const;
180     MEDCoupling1DGTUMesh *computeDualMesh2D() const;
181     template<class MAPCLS>
182     void renumberNodesInConnT(const MAPCLS& newNodeNumbersO2N);
183   private:
184     MCAuto<DataArrayIdType> _conn;
185   public:
186     static const int HEXA8_FACE_PAIRS[6];
187   };
188
189   class MEDCoupling1DGTUMesh : public MEDCoupling1GTUMesh
190   {
191   public:
192     MEDCOUPLING_EXPORT static MEDCoupling1DGTUMesh *New(const std::string& name, INTERP_KERNEL::NormalizedCellType type);
193     MEDCOUPLING_EXPORT static MEDCoupling1DGTUMesh *New(const MEDCouplingUMesh *m);
194     //! useless constructor only for CORBA -> not swigged
195     MEDCOUPLING_EXPORT static MEDCoupling1DGTUMesh *New();
196     MEDCOUPLING_EXPORT std::string getClassName() const override { return std::string("MEDCoupling1DGTUMesh"); }
197     // Copy methods
198     MEDCOUPLING_EXPORT MEDCoupling1DGTUMesh *clone(bool recDeepCpy) const;
199     MEDCOUPLING_EXPORT MEDCoupling1DGTUMesh *deepCopy() const;
200     MEDCOUPLING_EXPORT MEDCoupling1DGTUMesh *deepCopyConnectivityOnly() const;
201
202     // overload of TimeLabel and RefCountObject
203     MEDCOUPLING_EXPORT void updateTime() const;
204     MEDCOUPLING_EXPORT std::size_t getHeapMemorySizeWithoutChildren() const;
205     MEDCOUPLING_EXPORT std::vector<const BigMemoryObject *> getDirectChildrenWithNull() const;
206     // overload of MEDCouplingMesh
207     MEDCOUPLING_EXPORT MEDCouplingMeshType getType() const { return SINGLE_DYNAMIC_GEO_TYPE_UNSTRUCTURED; }
208     MEDCOUPLING_EXPORT bool isEqualIfNotWhy(const MEDCouplingMesh *other, double prec, std::string& reason) const;
209     MEDCOUPLING_EXPORT bool isEqualWithoutConsideringStr(const MEDCouplingMesh *other, double prec) const;
210     MEDCOUPLING_EXPORT void checkFastEquivalWith(const MEDCouplingMesh *other, double prec) const;
211     MEDCOUPLING_EXPORT void checkConsistencyLight() const;
212     MEDCOUPLING_EXPORT void checkConsistency(double eps=1e-12) const;
213     MEDCOUPLING_EXPORT mcIdType getNumberOfCells() const;
214     MEDCOUPLING_EXPORT DataArrayIdType *computeNbOfNodesPerCell() const;
215     MEDCOUPLING_EXPORT DataArrayIdType *computeNbOfFacesPerCell() const;
216     MEDCOUPLING_EXPORT DataArrayIdType *computeEffectiveNbOfNodesPerCell() const;
217     MEDCOUPLING_EXPORT void getNodeIdsOfCell(mcIdType cellId, std::vector<mcIdType>& conn) const;
218     MEDCOUPLING_EXPORT std::string simpleRepr() const;
219     MEDCOUPLING_EXPORT std::string advancedRepr() const;
220     MEDCOUPLING_EXPORT DataArrayDouble *computeIsoBarycenterOfNodesPerCell() const;
221     MEDCOUPLING_EXPORT void renumberCells(const mcIdType *old2NewBg, bool check=true);
222     MEDCOUPLING_EXPORT MEDCouplingMesh *mergeMyselfWith(const MEDCouplingMesh *other) const;
223     MEDCOUPLING_EXPORT MEDCouplingUMesh *buildUnstructured() const;
224     MEDCOUPLING_EXPORT DataArrayIdType *simplexize(int policy);
225     MEDCOUPLING_EXPORT void reprQuickOverview(std::ostream& stream) const;
226     // overload of MEDCouplingPointSet
227     MEDCOUPLING_EXPORT void shallowCopyConnectivityFrom(const MEDCouplingPointSet *other);
228     MEDCOUPLING_EXPORT MEDCouplingPointSet *mergeMyselfWithOnSameCoords(const MEDCouplingPointSet *other) const;
229     MEDCOUPLING_EXPORT MEDCouplingPointSet *buildPartOfMySelfKeepCoords(const mcIdType *begin, const mcIdType *end) const;
230     MEDCOUPLING_EXPORT MEDCouplingPointSet *buildPartOfMySelfKeepCoordsSlice(mcIdType start, mcIdType end, mcIdType step) const;
231     MEDCOUPLING_EXPORT void computeNodeIdsAlg(std::vector<bool>& nodeIdsInUse) const;
232     MEDCOUPLING_EXPORT void getReverseNodalConnectivity(DataArrayIdType *revNodal, DataArrayIdType *revNodalIndx) const;
233     MEDCOUPLING_EXPORT void checkFullyDefined() const;
234     MEDCOUPLING_EXPORT bool isEmptyMesh(const std::vector<mcIdType>& tinyInfo) const;
235     MEDCOUPLING_EXPORT DataArrayIdType *computeFetchedNodeIds() const;
236     MEDCOUPLING_EXPORT DataArrayIdType *getNodeIdsInUse(mcIdType& nbrOfNodesInUse) const;
237     MEDCOUPLING_EXPORT void renumberNodesWithOffsetInConn(mcIdType offset);
238     MEDCOUPLING_EXPORT void renumberNodesInConn(const INTERP_KERNEL::HashMap<mcIdType,mcIdType>& newNodeNumbersO2N);
239     MEDCOUPLING_EXPORT void renumberNodesInConn(const std::map<mcIdType,mcIdType>& newNodeNumbersO2N) override;
240     MEDCOUPLING_EXPORT void renumberNodesInConn(const mcIdType *newNodeNumbersO2N);
241     MEDCOUPLING_EXPORT void fillCellIdsToKeepFromNodeIds(const mcIdType *begin, const mcIdType *end, bool fullyIn, DataArrayIdType *&cellIdsKeptArr) const;
242     MEDCOUPLING_EXPORT mcIdType getNumberOfNodesInCell(mcIdType cellId) const;
243     MEDCOUPLING_EXPORT DataArrayDouble *getBoundingBoxForBBTree(double arcDetEps=1e-12) const;
244     MEDCOUPLING_EXPORT MEDCouplingFieldDouble *computeDiameterField() const;
245     MEDCOUPLING_EXPORT void invertOrientationOfAllCells();
246     // overload of MEDCoupling1GTUMesh
247     MEDCOUPLING_EXPORT void checkConsistencyOfConnectivity() const;
248     MEDCOUPLING_EXPORT void allocateCells(mcIdType nbOfCells=0);
249     MEDCOUPLING_EXPORT void insertNextCell(const mcIdType *nodalConnOfCellBg, const mcIdType *nodalConnOfCellEnd);
250   public://specific
251     MEDCOUPLING_EXPORT void setNodalConnectivity(DataArrayIdType *nodalConn, DataArrayIdType *nodalConnIndex);
252     MEDCOUPLING_EXPORT DataArrayIdType *getNodalConnectivity() const;
253     MEDCOUPLING_EXPORT DataArrayIdType *getNodalConnectivityIndex() const;
254     MEDCOUPLING_EXPORT MEDCoupling1DGTUMesh *copyWithNodalConnectivityPacked(bool& isShallowCpyOfNodalConnn) const;
255     MEDCOUPLING_EXPORT bool retrievePackedNodalConnectivity(DataArrayIdType *&nodalConn, DataArrayIdType *&nodalConnIndx) const;
256     MEDCOUPLING_EXPORT bool isPacked() const;
257     MEDCOUPLING_EXPORT static MEDCoupling1DGTUMesh *Merge1DGTUMeshes(const MEDCoupling1DGTUMesh *mesh1, const MEDCoupling1DGTUMesh *mesh2);
258     MEDCOUPLING_EXPORT static MEDCoupling1DGTUMesh *Merge1DGTUMeshes(std::vector<const MEDCoupling1DGTUMesh *>& a);
259     MEDCOUPLING_EXPORT static MEDCoupling1DGTUMesh *Merge1DGTUMeshesOnSameCoords(std::vector<const MEDCoupling1DGTUMesh *>& a);
260     MEDCOUPLING_EXPORT static DataArrayIdType *AggregateNodalConnAndShiftNodeIds(const std::vector<const DataArrayIdType *>& nodalConns, const std::vector<mcIdType>& offsetInNodeIdsPerElt);
261     MEDCOUPLING_EXPORT static std::vector<mcIdType> BuildAPolygonFromParts(const std::vector< std::vector<mcIdType> >& parts);
262     MEDCOUPLING_EXPORT MEDCoupling1DGTUMesh *buildSetInstanceFromThis(std::size_t spaceDim) const;
263   public://serialization
264     MEDCOUPLING_EXPORT void getTinySerializationInformation(std::vector<double>& tinyInfoD, std::vector<mcIdType>& tinyInfo, std::vector<std::string>& littleStrings) const;
265     MEDCOUPLING_EXPORT void resizeForUnserialization(const std::vector<mcIdType>& tinyInfo, DataArrayIdType *a1, DataArrayDouble *a2, std::vector<std::string>& littleStrings) const;
266     MEDCOUPLING_EXPORT void serialize(DataArrayIdType *&a1, DataArrayDouble *&a2) const;
267     MEDCOUPLING_EXPORT void unserialization(const std::vector<double>& tinyInfoD, const std::vector<mcIdType>& tinyInfo, const DataArrayIdType *a1, DataArrayDouble *a2,
268                                             const std::vector<std::string>& littleStrings);
269   private:
270     MEDCoupling1DGTUMesh(const std::string& name, const INTERP_KERNEL::CellModel& cm);
271     MEDCoupling1DGTUMesh(const MEDCoupling1DGTUMesh& other, bool recDeepCpy);
272     MEDCoupling1DGTUMesh();
273   private:
274     void checkDynamicGeoT2ype() const;
275     static MEDCoupling1DGTUMesh *Merge1DGTUMeshesLL(std::vector<const MEDCoupling1DGTUMesh *>& a);
276     template<class MAPCLS>
277     void renumberNodesInConnT(const MAPCLS& newNodeNumbersO2N);
278   private:
279     MCAuto<DataArrayIdType> _conn_indx;
280     MCAuto<DataArrayIdType> _conn;
281   };
282 }
283
284 #endif