-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016 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
::SMESH_Gen* theGenImpl ) : SALOME::GenericObj_i( thePOA ),
SMESH_Hypothesis_i( thePOA )
{
- MESSAGE( "StdMeshers_ProjectionSource2D_i::StdMeshers_ProjectionSource2D_i" );
myBaseImpl = new ::StdMeshers_ProjectionSource2D( theGenImpl->GetANewId(),
theStudyId,
theGenImpl );
StdMeshers_ProjectionSource2D_i::~StdMeshers_ProjectionSource2D_i()
{
- MESSAGE( "StdMeshers_ProjectionSource2D_i::~StdMeshers_ProjectionSource2D_i" );
}
//=============================================================================
myCorbaMesh = SMESH::SMESH_Mesh::_duplicate( mesh );
- GetImpl()->SetSourceMesh ( meshImpl );
- GetImpl()->SetSourceFace ( shapes[ SRC_FACE ] );
- GetImpl()->SetVertexAssociation( shapes[ SRC_VERTEX1 ],
- shapes[ SRC_VERTEX2 ],
- shapes[ TGT_VERTEX1 ],
- shapes[ TGT_VERTEX2 ]);
+ try {
+ GetImpl()->SetSourceMesh ( meshImpl );
+ GetImpl()->SetSourceFace ( shapes[ SRC_FACE ] );
+ GetImpl()->SetVertexAssociation( shapes[ SRC_VERTEX1 ],
+ shapes[ SRC_VERTEX2 ],
+ shapes[ TGT_VERTEX1 ],
+ shapes[ TGT_VERTEX2 ]);
+ }
+ catch( ... ) {
+ }
myBaseImpl->LoadFrom( is );
std::istringstream str( theStream );