From 32ee8843415498268b9544232a2c7107ab695e08 Mon Sep 17 00:00:00 2001 From: rkv Date: Thu, 16 Jan 2014 08:03:35 +0000 Subject: [PATCH] Dump of profile is implemented. --- src/HYDROData/HYDROData_Profile.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/HYDROData/HYDROData_Profile.cxx b/src/HYDROData/HYDROData_Profile.cxx index ec1b9d7f..8efcf23b 100755 --- a/src/HYDROData/HYDROData_Profile.cxx +++ b/src/HYDROData/HYDROData_Profile.cxx @@ -95,6 +95,19 @@ QStringList HYDROData_Profile::DumpToPython( MapOfTreatedObjects& theTreatedObje aResList << QString( "];" ); aResList << QString( "%1.SetParametricPoints( points )" ).arg( aName ); } + + // Set a polyline type if it is not default + Handle(HYDROData_ProfileUZ) aPrf = GetProfileUZ( false ); + if ( !aPrf.IsNull() ) + { + HYDROData_IPolyline::SectionType aSecType = aPrf->GetSectionType( 0 ); + if ( aSecType != HYDROData_IPolyline::SECTION_POLYLINE ) + { + aResList << QString( "%1.GetProfileUZ().SetSectionType( 0, %2 );" ).arg( aName ) + .arg( "HYDROData_IPolyline.SECTION_SPLINE" ); + } + } + aResList << QString( "" ); aResList << QString( "%1.Update();" ).arg( aName ); aResList << QString( "" ); -- 2.39.2