X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers_I%2FStdMeshers_Adaptive1D_i.cxx;h=bcf6cc5ac5a7c8c6b160c5bad976631a245f3ae5;hp=c6d82b9c11e41d0fe96fc171f40bc2de96dc1637;hb=80fe1ddefc561a7a571ac08807f7d173f45d8080;hpb=1c3a10f8107fc78132341eb9543a42b4ea0e4fa0 diff --git a/src/StdMeshers_I/StdMeshers_Adaptive1D_i.cxx b/src/StdMeshers_I/StdMeshers_Adaptive1D_i.cxx index c6d82b9c1..bcf6cc5ac 100644 --- a/src/StdMeshers_I/StdMeshers_Adaptive1D_i.cxx +++ b/src/StdMeshers_I/StdMeshers_Adaptive1D_i.cxx @@ -152,6 +152,37 @@ CORBA::Double StdMeshers_Adaptive1D_i::GetDeflection() return this->GetImpl()->GetDeflection(); } +//======================================================================= +//function : SetGrading +//purpose : Sets how much size of adjacent elements can differ. +//======================================================================= + +void StdMeshers_Adaptive1D_i::SetGrading( CORBA::Double theValue ) + throw ( SALOME::SALOME_Exception ) +{ + ASSERT( myBaseImpl ); + try { + this->GetImpl()->SetGrading( theValue ); + } + catch ( SALOME_Exception& S_ex ) { + THROW_SALOME_CORBA_EXCEPTION( S_ex.what(), SALOME::BAD_PARAM ); + } + + // Update Python script + SMESH::TPythonDump() << _this() << ".SetGrading( " << SMESH::TVar(theValue) << " )"; +} + +//======================================================================= +//function : GetGrading +//purpose : Returns grading +//======================================================================= + +CORBA::Double StdMeshers_Adaptive1D_i::GetGrading() +{ + ASSERT( myBaseImpl ); + return this->GetImpl()->GetGrading(); +} + //======================================================================= //function : GetImpl //purpose : Get implementation