X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_BallElement.cxx;h=8cf426a91ae87bfe0df9a046c32fd293f01205af;hb=f757d34e5ab5e6471f7d49c835b6d7b0d58009c8;hp=9595e9889cee4f4fcfb578285d2967ae18028ad7;hpb=bd4e115a78b52e3fbc016e5e30bb0e19b2a9e7d6;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_BallElement.cxx b/src/SMDS/SMDS_BallElement.cxx index 9595e9889..8cf426a91 100644 --- a/src/SMDS/SMDS_BallElement.cxx +++ b/src/SMDS/SMDS_BallElement.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2010-2012 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2010-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -47,10 +47,9 @@ SMDS_BallElement::SMDS_BallElement(vtkIdType nodeId, double diameter, SMDS_Mesh* void SMDS_BallElement::init(vtkIdType nodeId, double diameter, SMDS_Mesh* mesh) { SMDS_MeshCell::init(); - SMDS_UnstructuredGrid* grid = mesh->getGrid(); - myVtkID = grid->InsertNextLinkedCell( GetVtkType(), 1, &nodeId ); myMeshId = mesh->getMeshId(); - grid->SetBallDiameter( myVtkID, diameter ); + myVtkID = mesh->getGrid()->InsertNextLinkedCell( GetVtkType(), 1, &nodeId ); + mesh->getGrid()->SetBallDiameter( myVtkID, diameter ); mesh->setMyModified(); }