CURRENT_DIR=`pwd`
CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
cd ${CONF_DIR}
-python $KERNEL_ROOT_DIR/salome_adm/cmake_files/am2cmake.py --hexoticplugin
+python $KERNEL_ROOT_DIR/salome_adm/cmake_files/deprecated/am2cmake.py --hexoticplugin
status=$?
cd ${CURRENT_DIR}
exit $status
#ifdef WITH_BLSURFPLUGIN
_blsurfHypo = NULL;
#endif
-#ifdef WITH_SMESH_CANCEL_COMPUTE
_compute_canceled = false;
-#endif
}
//=============================================================================
if (_iShape == 0 && _nbShape == 0) {
_nbShape = countShape( meshDS, TopAbs_SOLID ); // we count the number of shapes
- //_tabNode = new SMDS_MeshNode*[_nbShape]; // we declare the size of the node array
}
// to prevent from displaying error message after computing,
// SetIsAlwaysComputed( true ) to empty sub-meshes
+ vector< SMESH_subMesh* > subMeshesAlwaysComp;
for ( int i = 0; i < _nbShape; ++i )
if ( SMESH_subMesh* sm = aMesh.GetSubMeshContaining( aShape ))
{
{
sm = smIt->next();
if ( !sm->IsMeshComputed() )
+ {
sm->SetIsAlwaysComputed( true );
+ subMeshesAlwaysComp.push_back( sm );
+ }
}
}
if (_iShape == _nbShape ) {
- // for (int i=0; i<_nbShape; i++) // we destroy the (_nbShape - 1) nodes created and used
- // meshDS->RemoveNode( _tabNode[i] ); // to simulate successful mesh computing.
- // delete [] _tabNode;
-
// create bounding box for each shape of the compound
int iShape = 0;
MESSAGE("HexoticPlugin_Hexotic::Compute");
- system( run_Hexotic.data() );
+ int status = system( run_Hexotic.data() );
// --------------
// read a result
if ( std::search( fileBeg, fileEnd, msgLic, msgLic+strlen(msgLic)) != fileEnd )
error("Licence problems.");
}
+ if ( status > 0 && WEXITSTATUS(status) == 127 )
+ error("hexotic: command not found");
}
cout << "Hexahedra meshing " << hexahedraMessage << std::endl;
cout << std::endl;
+ // restore "always computed" flag of sub-meshes (0022127)
+ for ( size_t iSM = 0; iSM < subMeshesAlwaysComp.size(); ++iSM )
+ subMeshesAlwaysComp[ iSM ]->SetIsAlwaysComputed( false );
+
delete [] tabShape;
for (int i=0; i<_nbShape; i++)
delete [] tabBox[i];