Pb: nothing is generated on several-solids shape if there is a
sub-mesh on an empty geom group.
This commit is contained in:
parent
005805f161
commit
8d75206ca6
@ -518,8 +518,9 @@ void NETGENPlugin_Mesher::PrepareOCCgeometry(netgen::OCCGeometry& occgeo,
|
|||||||
|
|
||||||
// get root submeshes
|
// get root submeshes
|
||||||
list< SMESH_subMesh* > rootSM;
|
list< SMESH_subMesh* > rootSM;
|
||||||
if ( SMESH_subMesh* sm = mesh.GetSubMeshContaining( shape )) {
|
const int shapeID = mesh.GetMeshDS()->ShapeToIndex( shape );
|
||||||
rootSM.push_back( sm );
|
if ( shapeID > 0 ) { // SMESH_subMesh with ID 0 may exist, don't use it!
|
||||||
|
rootSM.push_back( mesh.GetSubMesh( shape ));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for ( TopoDS_Iterator it( shape ); it.More(); it.Next() )
|
for ( TopoDS_Iterator it( shape ); it.More(); it.Next() )
|
||||||
@ -2968,6 +2969,8 @@ double NETGENPlugin_Mesher::GetProgress(const SMESH_Algo* holder,
|
|||||||
{
|
{
|
||||||
((int&) _progressTic ) = *algoProgressTic + 1;
|
((int&) _progressTic ) = *algoProgressTic + 1;
|
||||||
|
|
||||||
|
if ( !_occgeom ) return 0;
|
||||||
|
|
||||||
double progress = -1;
|
double progress = -1;
|
||||||
if ( !_isVolume )
|
if ( !_isVolume )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user