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 );
}