mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-20 21:00:33 +05:00
0020918: EDF 1447 SMESH: Mesh common borders
smesh.Evaluate( mesh, geom ) --> mesh.Evaluate(geom)
This commit is contained in:
parent
b9288c7246
commit
6386585f46
@ -342,6 +342,7 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand )
|
||||
// Concatenate( [mesh1, ...], ... )
|
||||
// CreateHypothesis( theHypType, theLibName )
|
||||
// Compute( mesh, geom )
|
||||
// Evaluate( mesh, geom )
|
||||
// mesh creation
|
||||
TCollection_AsciiString method = theCommand->GetMethod();
|
||||
|
||||
@ -395,6 +396,20 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand )
|
||||
}
|
||||
}
|
||||
|
||||
// smeshgen.Evaluate( mesh, geom ) --> mesh.Evaluate(geom)
|
||||
if ( method == "Evaluate" )
|
||||
{
|
||||
const _pyID& meshID = theCommand->GetArg( 1 );
|
||||
map< _pyID, Handle(_pyMesh) >::iterator id_mesh = myMeshes.find( meshID );
|
||||
if ( id_mesh != myMeshes.end() ) {
|
||||
theCommand->SetObject( meshID );
|
||||
_pyID geom = theCommand->GetArg( 2 );
|
||||
theCommand->RemoveArgs();
|
||||
theCommand->SetArg( 1, geom );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// objects erasing creation command if no more it's commands invoked:
|
||||
// SMESH_Pattern, FilterManager
|
||||
if ( method == "GetPattern" || method == "CreateFilterManager" ) {
|
||||
|
Loading…
Reference in New Issue
Block a user