X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_Import_1D.cxx;h=a313cd6a361ed0b1227aef6b2a2f648a604a3fb4;hp=94770855a188ceb31258d51a3662adafb2f75c40;hb=09bc0414c91ebabb67c7fe200549044a1854e199;hpb=a17b36970bc61da1d664453c615754997c925b18 diff --git a/src/StdMeshers/StdMeshers_Import_1D.cxx b/src/StdMeshers/StdMeshers_Import_1D.cxx index 94770855a..a313cd6a3 100644 --- a/src/StdMeshers/StdMeshers_Import_1D.cxx +++ b/src/StdMeshers/StdMeshers_Import_1D.cxx @@ -20,7 +20,7 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// SMESH SMESH : implementaion of SMESH idl descriptions +// SMESH SMESH : implementation of SMESH idl descriptions // File : StdMeshers_Import_1D.cxx // Module : SMESH // @@ -60,10 +60,9 @@ using namespace std; */ //============================================================================= -StdMeshers_Import_1D::StdMeshers_Import_1D(int hypId, int studyId, SMESH_Gen * gen) - :SMESH_1D_Algo(hypId, studyId, gen), _sourceHyp(0) +StdMeshers_Import_1D::StdMeshers_Import_1D(int hypId, SMESH_Gen * gen) + :SMESH_1D_Algo(hypId, gen), _sourceHyp(0) { - MESSAGE("StdMeshers_Import_1D::StdMeshers_Import_1D"); _name = "Import_1D"; _shapeType = (1 << TopAbs_EDGE); @@ -212,7 +211,7 @@ namespace // INTERNAL STUFF "StdMeshers_Import_1D::_Listener") {} public: - // return poiter to a static listener + // return pointer to a static listener static _Listener* get() { static _Listener theListener; return &theListener; } static _ImportData* getImportData(const SMESH_Mesh* srcMesh, SMESH_Mesh* tgtMesh); @@ -290,7 +289,7 @@ namespace // INTERNAL STUFF //-------------------------------------------------------------------------------- /*! * \brief Remove imported mesh and/or groups if needed - * \param sm - submesh loosing Import algo + * \param sm - submesh losing Import algo * \param data - data holding imported groups */ void _Listener::removeSubmesh( SMESH_subMesh* sm, _ListenerData* data ) @@ -312,7 +311,7 @@ namespace // INTERNAL STUFF //-------------------------------------------------------------------------------- /*! * \brief Clear _ImportData::_n2n. - * _n2n is usefull within one mesh.Compute() only + * _n2n is useful within one mesh.Compute() only */ void _Listener::clearN2N( SMESH_Mesh* tgtMesh ) { @@ -912,7 +911,7 @@ void StdMeshers_Import_1D::importMesh(const SMESH_Mesh* srcMesh, int nb = 1; while ( !namesByType[ srcGroupDS->GetType() ].insert( name ).second ) name = SMESH_Comment(srcGroup->GetName()) << "_imported_" << nb++; - SMESH_Group* newGroup = tgtMesh.AddGroup( srcGroupDS->GetType(), name.c_str(), nb ); + SMESH_Group* newGroup = tgtMesh.AddGroup( srcGroupDS->GetType(), name.c_str() ); SMESHDS_Group* newGroupDS = (SMESHDS_Group*)newGroup->GetGroupDS(); resultGroups.push_back( newGroup );