Salome HOME
A py3 translation of a forgotten test py file
[tools/medcoupling.git] / src / MEDCoupling_Swig / MEDCouplingExamplesTest.py
index b5e41a09f7728a4b8a324e398d5f306c55fc926f..fb60d96a8685eea9bd576cc3a69ece825e0e9e31 100644 (file)
@@ -2115,20 +2115,22 @@ class MEDCouplingBasicsTest(unittest.TestCase):
 # ! [PySnippetUMeshStdBuild1_2]
 # ! [PySnippetUMeshStdBuild1_3]
         mesh.allocateCells(5)#You can put more than 5 if you want but not less.
+        # adding cells
         mesh.insertNextCell(NORM_QUAD4,nodalConnPerCell[:4])
         mesh.insertNextCell(NORM_TRI3,nodalConnPerCell[4:7])
         mesh.insertNextCell(NORM_TRI3,nodalConnPerCell[7:10])
         mesh.insertNextCell(NORM_QUAD4,nodalConnPerCell[10:14])
         mesh.insertNextCell(NORM_QUAD4,nodalConnPerCell[14:])
+        # compacting
         mesh.finishInsertingCells()
 # ! [PySnippetUMeshStdBuild1_3]
 # ! [PySnippetUMeshStdBuild1_4]
         coordsArr=DataArrayDouble(coords,9,3)#here coordsArr are declared to have 3 components, mesh will deduce that its spaceDim==3. 
         mesh.setCoords(coordsArr)#coordsArr contains 9 tuples, that is to say mesh contains 9 nodes.
 # ! [PySnippetUMeshStdBuild1_4]
-# ! [PySnippetUMeshStdBuild1_5]
 # ! [PySnippetUMeshStdBuild1_5]
         mesh.checkConsistencyLight()
+# ! [PySnippetUMeshStdBuild1_5]
         return
 
     def testExampleCMeshStdBuild1(self):