X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHOMARD_I%2FHOMARD_Boundary_i.cxx;h=d1f829ce4521696956dbb968cdc7f848621566b0;hb=refs%2Ftags%2FV9_13_0b1;hp=45a73a8b06cb34d4df97b4a9b063eae435f9450d;hpb=a98a6c26b86d7c1b952e4a04de60a04e15fc5183;p=modules%2Fhomard.git diff --git a/src/HOMARD_I/HOMARD_Boundary_i.cxx b/src/HOMARD_I/HOMARD_Boundary_i.cxx index 45a73a8b..d1f829ce 100644 --- a/src/HOMARD_I/HOMARD_Boundary_i.cxx +++ b/src/HOMARD_I/HOMARD_Boundary_i.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2011-2013 CEA/DEN, EDF R&D +// Copyright (C) 2011-2024 CEA, EDF // // 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 @@ -16,6 +16,7 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + // Remarques : // L'ordre de description des fonctions est le meme dans tous les fichiers // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx : @@ -133,18 +134,18 @@ char* HOMARD_Boundary_i::GetMeshName() return CORBA::string_dup( myHomardBoundary->GetMeshName().c_str() ); } //============================================================================= -void HOMARD_Boundary_i::SetMeshFile( const char* MeshFile ) +void HOMARD_Boundary_i::SetDataFile( const char* DataFile ) { ASSERT( myHomardBoundary ); - myHomardBoundary->SetMeshFile( MeshFile ); + myHomardBoundary->SetDataFile( DataFile ); int PublisMeshIN = _gen_i->GetPublisMeshIN () ; - if ( PublisMeshIN != 0 ) { _gen_i->PublishResultInSmesh(MeshFile, 0); } + if ( PublisMeshIN != 0 ) { _gen_i->PublishResultInSmesh(DataFile, 0); } } //============================================================================= -char* HOMARD_Boundary_i::GetMeshFile() +char* HOMARD_Boundary_i::GetDataFile() { ASSERT( myHomardBoundary ); - return CORBA::string_dup( myHomardBoundary->GetMeshFile().c_str() ); + return CORBA::string_dup( myHomardBoundary->GetDataFile().c_str() ); } //============================================================================= void HOMARD_Boundary_i::SetCylinder( double X0, double X1, double X2, double X3, double X4, double X5, double X6 ) @@ -171,6 +172,12 @@ void HOMARD_Boundary_i::SetConeA( double Xaxe, double Yaxe, double Zaxe, double myHomardBoundary->SetConeA( Xaxe, Yaxe, Zaxe, Angle, Xcentre, Ycentre, Zcentre ); } //============================================================================= +void HOMARD_Boundary_i::SetTorus( double X0, double X1, double X2, double X3, double X4, double X5, double X6, double X7 ) +{ + ASSERT( myHomardBoundary ); + myHomardBoundary->SetTorus( X0, X1, X2, X3, X4, X5, X6, X7 ); +} +//============================================================================= HOMARD::double_array* HOMARD_Boundary_i::GetCoords() { ASSERT( myHomardBoundary );