X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDriverMED%2FDriverMED_W_Field.h;h=03168e7cb21452e1ae135aa55a275bd51359f9ac;hb=9dae8fcc9e18e4a50f7e2a0b7b1239ba77c807a4;hp=56b907d73e43c7902f1f8b95902e450467ffbfbf;hpb=97787812e26d555a6141ece38c9f13167410f425;p=modules%2Fsmesh.git diff --git a/src/DriverMED/DriverMED_W_Field.h b/src/DriverMED/DriverMED_W_Field.h index 56b907d73..03168e7cb 100644 --- a/src/DriverMED/DriverMED_W_Field.h +++ b/src/DriverMED/DriverMED_W_Field.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -41,6 +41,8 @@ class MESHDRIVERMED_EXPORT DriverMED_W_Field: public Driver_SMESHDS_Mesh DriverMED_W_Field(); + void AddODOnVertices(bool toAdd) { _addODOnVertices = toAdd; } + bool Set(SMESHDS_Mesh * mesh, const std::string & fieldName, SMDSAbs_ElementType type, @@ -55,7 +57,7 @@ class MESHDRIVERMED_EXPORT DriverMED_W_Field: public Driver_SMESHDS_Mesh void AddValue( int val ); /* - * Returns elements in the order they are written in MED file. Result can be NULL! + * Return elements in the order they are written in MED file. Result can be NULL! */ SMDS_ElemIteratorPtr GetOrderedElems(); @@ -72,6 +74,7 @@ class MESHDRIVERMED_EXPORT DriverMED_W_Field: public Driver_SMESHDS_Mesh std::vector< double > _dblValues; std::vector< int > _intValues; int _dt, _it; + bool _addODOnVertices; std::vector< const SMDS_MeshElement* > _elemsByGeom[SMDSEntity_Last]; std::vector< std::pair< SMDSAbs_EntityType, int > > _nbElemsByGeom;