- if ( shells(1).IsSame( BRepTools::OuterShell( solid1 )) )
- { // - No, but maybe a hole is bound by two shapes? Does shells(1) touches another shell?
- bool touch = false;
- TopExp_Explorer eExp( shells(1), TopAbs_EDGE );
- // check if any edge of shells(1) belongs to another shell
- for ( ; eExp.More() && !touch; eExp.Next() ) {
- ansIt = mesh.GetAncestors( eExp.Current() );
- for ( ; ansIt.More() && !touch; ansIt.Next() ) {
- if ( ansIt.Value().ShapeType() == TopAbs_SHELL )
- touch = ( !ansIt.Value().IsSame( shells(1) ));
- }
- }
- if (!touch)
- return meshDS->ShapeToIndex( solid1 );
- }
+ // if ( shells(1).IsSame( BRepTools::OuterShell( solid1 )) )
+ // { // - No, but maybe a hole is bound by two shapes? Does shells(1) touches another shell?
+ // bool touch = false;
+ // TopExp_Explorer eExp( shells(1), TopAbs_EDGE );
+ // // check if any edge of shells(1) belongs to another shell
+ // for ( ; eExp.More() && !touch; eExp.Next() ) {
+ // ansIt = mesh.GetAncestors( eExp.Current() );
+ // for ( ; ansIt.More() && !touch; ansIt.Next() ) {
+ // if ( ansIt.Value().ShapeType() == TopAbs_SHELL )
+ // touch = ( !ansIt.Value().IsSame( shells(1) ));
+ // }
+ // }
+ // if (!touch)
+ // return meshDS->ShapeToIndex( solid1 );
+ // }