mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-30 11:40:33 +05:00
fix problem with Preview result when server and client launched as independant processes
This commit is contained in:
parent
dd19ae7b16
commit
733d218566
@ -1776,10 +1776,11 @@ void SMESHGUI_PrecomputeOp::onPreview()
|
|||||||
|
|
||||||
SMESH::MeshPreviewStruct_var previewData =
|
SMESH::MeshPreviewStruct_var previewData =
|
||||||
gen->Precompute(myMesh, myMainShape, (SMESH::Dimension)dim, aShapesId);
|
gen->Precompute(myMesh, myMainShape, (SMESH::Dimension)dim, aShapesId);
|
||||||
if ( previewData.operator->() )
|
SMESH::MeshPreviewStruct* previewRes = previewData._retn();
|
||||||
|
if ( previewRes && previewRes->nodesXYZ.length() > 0 )
|
||||||
{
|
{
|
||||||
computeFailed = false;
|
computeFailed = false;
|
||||||
myPreviewDisplayer->SetData( previewData._retn() );
|
myPreviewDisplayer->SetData( previewRes );
|
||||||
// append shape indeces with computed mesh entities
|
// append shape indeces with computed mesh entities
|
||||||
for ( int i = 0, n = aShapesId->length(); i < n; i++ )
|
for ( int i = 0, n = aShapesId->length(); i < n; i++ )
|
||||||
myMapShapeId[ aShapesId[ i ] ] = 0;
|
myMapShapeId[ aShapesId[ i ] ] = 0;
|
||||||
|
@ -1389,7 +1389,7 @@ SMESH::MeshPreviewStruct* SMESH_Gen_i::Precompute( SMESH::SMESH_Mesh_ptr theMesh
|
|||||||
THROW_SALOME_CORBA_EXCEPTION( "bad Mesh reference",
|
THROW_SALOME_CORBA_EXCEPTION( "bad Mesh reference",
|
||||||
SALOME::BAD_PARAM );
|
SALOME::BAD_PARAM );
|
||||||
|
|
||||||
SMESH::MeshPreviewStruct_var result = 0;
|
SMESH::MeshPreviewStruct_var result = new SMESH::MeshPreviewStruct;
|
||||||
try {
|
try {
|
||||||
// get mesh servant
|
// get mesh servant
|
||||||
SMESH_Mesh_i* meshServant = dynamic_cast<SMESH_Mesh_i*>( GetServant( theMesh ).in() );
|
SMESH_Mesh_i* meshServant = dynamic_cast<SMESH_Mesh_i*>( GetServant( theMesh ).in() );
|
||||||
@ -1413,7 +1413,6 @@ SMESH::MeshPreviewStruct* SMESH_Gen_i::Precompute( SMESH::SMESH_Mesh_ptr theMesh
|
|||||||
int nbShapeId = shapeIds.size();
|
int nbShapeId = shapeIds.size();
|
||||||
theShapesId.length( nbShapeId );
|
theShapesId.length( nbShapeId );
|
||||||
// iterates on shapes and collect mesh entities into mesh preview
|
// iterates on shapes and collect mesh entities into mesh preview
|
||||||
result = new SMESH::MeshPreviewStruct;
|
|
||||||
TSetOfInt::const_iterator idIt = shapeIds.begin();
|
TSetOfInt::const_iterator idIt = shapeIds.begin();
|
||||||
TSetOfInt::const_iterator idEnd = shapeIds.end();
|
TSetOfInt::const_iterator idEnd = shapeIds.end();
|
||||||
std::map< int, int > mapOfShIdNb;
|
std::map< int, int > mapOfShIdNb;
|
||||||
|
Loading…
Reference in New Issue
Block a user