Problems found due to execution of MESH-075 GUI scenario

This commit is contained in:
eap 2014-10-29 22:17:47 +03:00
parent 98115fe1b8
commit 3c043924f9
3 changed files with 9 additions and 10 deletions

View File

@ -113,10 +113,9 @@ of the enforced nodes.
projected to the meshed face and located close enough to the projected to the meshed face and located close enough to the
meshed face will be used to create the enforced nodes.</li> meshed face will be used to create the enforced nodes.</li>
</ul> </ul>
\note <b>Enforced nodes</b> can't be created at \b Reduced transition type.
Let us see how the algorithm works: Let us see how the algorithm works:
<ul> <ul>
<li> Initially positions of nodes are computed without taking into <li> Initially positions of nodes are computed without taking into
account the enforced vertex (yellow point).</li> account the enforced vertex (yellow point).</li>

View File

@ -716,17 +716,17 @@ void SMESHGUI_MakeNodeAtPointOp::redisplayPreview()
myDlg->myDestinationZ->SetValue(z); myDlg->myDestinationZ->SetValue(z);
} }
if ( myDestCoordChanged ) { if ( myDestCoordChanged ) {
dx = myDlg->myDestinationX->GetValue() - myDlg->myCurrentX->GetValue(); dx = myDlg->myDestinationX->GetValue() - x;
dy = myDlg->myDestinationY->GetValue() - myDlg->myCurrentY->GetValue(); dy = myDlg->myDestinationY->GetValue() - y;
dz = myDlg->myDestinationZ->GetValue() - myDlg->myCurrentZ->GetValue(); dz = myDlg->myDestinationZ->GetValue() - z;
myDlg->myDestDX->SetValue(dx); myDlg->myDestDX->SetValue(dx);
myDlg->myDestDY->SetValue(dy); myDlg->myDestDY->SetValue(dy);
myDlg->myDestDZ->SetValue(dz); myDlg->myDestDZ->SetValue(dz);
} }
else { else {
dx = myDlg->myDestDX->GetValue() + myDlg->myCurrentX->GetValue();; dx = myDlg->myDestDX->GetValue() + x;
dy = myDlg->myDestDY->GetValue() + myDlg->myCurrentY->GetValue();; dy = myDlg->myDestDY->GetValue() + y;
dz = myDlg->myDestDZ->GetValue() + myDlg->myCurrentZ->GetValue();; dz = myDlg->myDestDZ->GetValue() + z;
myDlg->myDestinationX->SetValue(dx); myDlg->myDestinationX->SetValue(dx);
myDlg->myDestinationY->SetValue(dy); myDlg->myDestinationY->SetValue(dy);
myDlg->myDestinationZ->SetValue(dz); myDlg->myDestinationZ->SetValue(dz);

View File

@ -1550,8 +1550,8 @@ void ConnectedElements_i::SetThreshold ( const char*
if ( sobj->_is_nil() ) if ( sobj->_is_nil() )
THROW_SALOME_CORBA_EXCEPTION THROW_SALOME_CORBA_EXCEPTION
( "ConnectedElements_i::SetThreshold(): invalid vertex study entry", SALOME::BAD_PARAM ); ( "ConnectedElements_i::SetThreshold(): invalid vertex study entry", SALOME::BAD_PARAM );
CORBA::Object_var obj = sobj->GetObject(); CORBA::Object_var obj = sobj->GetObject();
GEOM::GEOM_Object_wrap vertex = GEOM::GEOM_Object::_narrow( obj ); GEOM::GEOM_Object_var vertex = GEOM::GEOM_Object::_narrow( obj );
if ( vertex->_is_nil() ) if ( vertex->_is_nil() )
THROW_SALOME_CORBA_EXCEPTION THROW_SALOME_CORBA_EXCEPTION
( "ConnectedElements_i::SetThreshold(): no GEOM_Object in SObject", SALOME::BAD_PARAM ); ( "ConnectedElements_i::SetThreshold(): no GEOM_Object in SObject", SALOME::BAD_PARAM );