- aPolyline2d->SetName( "polyline2d_1" );
- aPolyline2d->AddSection( "", HYDROData_IPolyline::SECTION_SPLINE, false );
+ Polyline_2->SetName( "polyline2d_1" );
+ Polyline_2->AddSection( "", HYDROData_IPolyline::SECTION_SPLINE, false );
+ Polyline_2->AddPoint( 0, gp_XY( -192.40, 397.86 ) );
+ Polyline_2->AddPoint( 0, gp_XY( -53.44, 293.35 ) );
+ Polyline_2->AddPoint( 0, gp_XY( 102.14, 225.65 ) );
+ Polyline_2->AddPoint( 0, gp_XY( 251.78, 108.08 ) );
+ Polyline_2->Update();
+
+ CPPUNIT_ASSERT_EQUAL( false, (bool)Polyline_2->GetShape().IsNull() );
+
+ Handle(HYDROData_Profile) aProfile0 =
+ Handle(HYDROData_Profile)::DownCast( aDoc->CreateObject( KIND_PROFILE ) );
+ aProfile0->SetName( "profile_0" );
+
+ HYDROData_IPolyline::PointsList aPoints;
+ aPoints.Append( gp_XY( 0.0, 0.0 ) );
+ aPoints.Append( gp_XY( 1.0, 0.0 ) );
+ aProfile0->GetProfileUZ( true );
+ aProfile0->SetParametricPoints( aPoints );
+ aProfile0->Update();