From: nadir Date: Tue, 17 Jan 2006 14:18:24 +0000 (+0000) Subject: Updating a little bit the documentation of the C++ layer of the Med Memory X-Git-Tag: ForV3_2_0bx X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9b9edad00486d2ca13c215cf26262d9fc2797442;p=tools%2Fmedcoupling.git Updating a little bit the documentation of the C++ layer of the Med Memory as well as the User Guide (OCC inputs). That is the first version. --- diff --git a/doc/MEDMEM/FIELDgeneral.cxx b/doc/MEDMEM/FIELDgeneral.cxx index 18c021037..0e3dd4769 100644 --- a/doc/MEDMEM/FIELDgeneral.cxx +++ b/doc/MEDMEM/FIELDgeneral.cxx @@ -48,7 +48,7 @@ int main (int argc, char ** argv) { // How many Value : int NumberOfValue = mySupport->getNumberOfElements(MED_ALL_ELEMENTS); // Value - const double * Value = myField.getValue(MED_FULL_INTERLACE); + const double * Value = myField.getValue(); for(int i=0; i 0 ) + { + cout << "Show Connectivity (Nodal) of POLYGONS:" << endl ; + const int* Connectivity = myMesh.getPolygonsConnectivity(MED_NODAL,MED_CELL); + const int* ConnectivityIndex = myMesh.getPolygonsConnectivityIndex(MED_NODAL,MED_CELL); + for (int j=0; j 0 ) + { + cout << "Show Connectivity (Nodal) of POLYHEDRONS:" << endl ; + const int* Connectivity = myMesh.getPolyhedronConnectivity(MED_NODAL); + const int* FaceIndex = myMesh.getPolyhedronFacesIndex(); + const int* Index = myMesh.getPolyhedronIndex(MED_NODAL); + for (int j=0; j 0 : + print "" + print " Show Connectivity (Nodal) of POLYGONS:" + print "" + connectivity = myMesh.getPolygonsConnectivity(MED_NODAL,MED_CELL) + index = myMesh.getPolygonsConnectivityIndex(MED_NODAL,MED_CELL) + for j in range(nbPolygons): + print " Polygon",(j+1)," ",connectivity[ index[j]-1 : index[j+1]-1 ] + pass + pass + +nbPolyhedrons = myMesh.getNumberOfPolyhedron() +if nbPolyhedrons > 0 : + print "" + print " Show Connectivity (Nodal) of POLYHEDRONS:" + print "" + connectivity = myMesh.getPolyhedronConnectivity(MED_NODAL) + fIndex = myMesh.getPolyhedronFacesIndex() + index = myMesh.getPolyhedronIndex(MED_NODAL) + for j in range(nbPolyhedrons): + print " Polyhedra",(j+1) + iF1, iF2 = index[ j ]-1, index[ j+1 ]-1 + for f in range( iF2 - iF1 ): + iN1, iN2 = fIndex[ iF1+f ]-1, fIndex[ iF1+f+1 ]-1 + print " Face",f+1," ",connectivity[ iN1 : iN2 ] + pass + pass + pass