summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6e32614)
Add HYDROData_CalculationCase::Export( GEOM::GEOM_Gen_var, SALOMEDS::Study_ptr theStudy ) method stub.
SALOMEDS::Study_ptr theStudy )
{
// Get faces
SALOMEDS::Study_ptr theStudy )
{
// Get faces
TopTools_ListOfShape aFaces;
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 );
+ }
- // TODO
- HYDROData_SequenceOfObjects aSplittedGroups;
+ // TODO to be revised
+ HYDROData_SequenceOfObjects aSplittedGroups = GetSplittedGroups();
return Export( theGeomEngine, theStudy, aFaces, aSplittedGroups );
}
return Export( theGeomEngine, theStudy, aFaces, aSplittedGroups );
}