Salome HOME
Intersection: renaming some variables and refactor to make the algo easier to read.
[tools/medcoupling.git] / doc / tutorial / medcoupling_2Dpolygon.rst
index 1cabbb61d5873d4b280fdb3bd05400248f5b2cbb..e7b14dd1ff7ef60b4f7bda77e651eb18c3b92fd3 100644 (file)
@@ -20,7 +20,7 @@ To implement this exercice we use the python language script and import the MEDC
 
        from math import *
 
-Then we must instanciate a meshing object::
+Then we must instantiate a meshing object::
 
        mesh=MEDCouplingUMesh.New()
        mesh.setMeshDimension(2)
@@ -96,8 +96,7 @@ For each hexagon of the mesh, you have to give its connectivity: the list of the
        for i in range(6):
                mesh.insertNextCell(NORM_POLYGON,6,connectivity[6*i:6*(i+1)])
                pass
-       mesh.finishInsertingCells()
-       mesh.checkCoherency()
+       mesh.checkConsistencyLight()
 
 Saving the mesh in a med file
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~