From: nadir Date: Tue, 31 Jan 2006 14:46:37 +0000 (+0000) Subject: committing the version in the main trunk of the CVS tree the branch X-Git-Tag: ForV3_2_0a1With_K_G_310 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dfc34f13cd27975a0aca4d8fc0c7086692f9a5ed;p=tools%2Fmedcoupling.git committing the version in the main trunk of the CVS tree the branch IntegrationEDF tagged ForV3_2_0bx. That is for the V3_2_0a1 of the MED module. --- diff --git a/doc/MEDMEM/FIELDgeneral.cxx b/doc/MEDMEM/FIELDgeneral.cxx index 1d37145ac..82771051a 100644 --- a/doc/MEDMEM/FIELDgeneral.cxx +++ b/doc/MEDMEM/FIELDgeneral.cxx @@ -67,7 +67,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