{
a2dShellBuilder.Add( a2dShell, aMakeFace.Face() );
}
+
+ aPrevFirstPoint = aCurFirstPoint;
+ aPrevLastPoint = aCurLastPoint;
}
SetTopShape( a2dShell );
bool HYDROData_Stream::SetHydraulicAxis( const Handle(HYDROData_PolylineXY)& theAxis )
{
Handle(HYDROData_PolylineXY) aPrevAxis = GetHydraulicAxis();
- if ( theAxis.IsNull() || IsEqual( aPrevAxis, theAxis ) )
+
+ if ( theAxis.IsNull() )
+ {
+ RemoveHydraulicAxis();
+ return !aPrevAxis.IsNull();
+ }
+
+ if ( IsEqual( aPrevAxis, theAxis ) )
return false;
-
+
TopoDS_Wire aHydraulicWire = TopoDS::Wire( theAxis->GetShape() );
if ( aHydraulicWire.IsNull() )
return false; // The polyline must be a single wire
return;
// TODO
+ AddReferenceObject( theProfile, DataTag_Profile ); // temporary for testing only
}
void HYDROData_Stream::updateProfilesOrder()