SALOMEDS::Study_ptr theStudy )
{
// Get faces
- // TODO
+ // TODO to be revised
TopTools_ListOfShape aFaces;
+ HYDROData_SequenceOfObjects aCaseRegions = GetRegions();
+ HYDROData_SequenceOfObjects::Iterator aRegionIter( aCaseRegions );
+ for ( ; aRegionIter.More(); aRegionIter.Next() ) {
+ Handle(HYDROData_Region) aRegion =
+ Handle(HYDROData_Region)::DownCast( aRegionIter.Value() );
+ if( aRegion.IsNull() ) {
+ continue;
+ }
+
+ TopoDS_Shape aRegionShape = aRegion->GetShape();
+ aFaces.Append( aRegionShape );
+ }
// Get groups
- // TODO
- HYDROData_SequenceOfObjects aSplittedGroups;
+ // TODO to be revised
+ HYDROData_SequenceOfObjects aSplittedGroups = GetSplittedGroups();
return Export( theGeomEngine, theStudy, aFaces, aSplittedGroups );
}
TopTools_IndexedMapOfShape aMapOfSubShapes;
TopExp::MapShapes( aSewedShape, aMapOfSubShapes );
- QHash<QString, QSet<int>> aGroupsData;
+ QHash<QString, QSet<int> > aGroupsData;
HYDROData_SequenceOfObjects::Iterator anIter( theSplittedGroups );
for ( ; anIter.More(); anIter.Next() ) {
// Get shapes of the group
TopTools_SequenceOfShape aShapes;
- aGroup->GeShapes( aShapes );
+ aGroup->GetShapes( aShapes );
for( int i = 1, aNbShapes = aShapes.Length(); i <= aNbShapes; i++ ) {
const TopoDS_Shape& aShape = aShapes.Value( i );
const TopoDS_Shape ModifiedShape = aSewing.Modified( aShape );
{
GEOM::GEOM_Object_var aGeomObj;
- bool isNil = aGeomObj->_is_nil(); ///@MZN
-
if ( theGeomEngine->_is_nil() || theStudy->_is_nil() ||
theShape.IsNull() ) {
return aGeomObj._retn();
}
return aGeomObj._retn();
- }
\ No newline at end of file
+ }