X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDriverDAT%2FDriverDAT_W_SMDS_Mesh.cxx;h=403dad4f5634748cf6a0d38af896efa95deb158b;hb=aa574473cfc2112ef654904d6f2af9fd6e46d4c7;hp=7ab288f86783fbf2ee439b4a2530f4a57cee52de;hpb=c80762b0a1cdba101aec4aa2b1cae281331a162e;p=modules%2Fsmesh.git diff --git a/src/DriverDAT/DriverDAT_W_SMDS_Mesh.cxx b/src/DriverDAT/DriverDAT_W_SMDS_Mesh.cxx index 7ab288f86..403dad4f5 100644 --- a/src/DriverDAT/DriverDAT_W_SMDS_Mesh.cxx +++ b/src/DriverDAT/DriverDAT_W_SMDS_Mesh.cxx @@ -117,7 +117,7 @@ Driver_Mesh::Status DriverDAT_W_SMDS_Mesh::Perform() } SMDS_VolumeIteratorPtr itVolumes=myMesh->volumesIterator(); - const SMDS_VtkVolume* v; + const SMDS_MeshVolume* v; while(itVolumes->more()) { const SMDS_MeshElement * elem = itVolumes->next(); @@ -125,7 +125,7 @@ Driver_Mesh::Status DriverDAT_W_SMDS_Mesh::Perform() { fprintf(aFileId, "%d %d ", elem->GetID(), 500+elem->NbNodes()); - if (( v = dynamic_cast< const SMDS_VtkVolume*>( elem ))) + if (( v = myMesh->DownCast< SMDS_MeshVolume >( elem ))) { std::vector quant = v->GetQuantities(); if ( !quant.empty() ) @@ -146,7 +146,7 @@ Driver_Mesh::Status DriverDAT_W_SMDS_Mesh::Perform() fprintf(aFileId, "\n"); } - + fclose(aFileId); return aResult;