From: asl Date: Thu, 26 Dec 2013 09:49:53 +0000 (+0000) Subject: debug of the channel creation X-Git-Tag: BR_hydro_v_0_7~46 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=11772a6407ab23d746f46e04aab173f5c4450c77;p=modules%2Fhydro.git debug of the channel creation --- diff --git a/src/HYDROData/HYDROData_Profile.cxx b/src/HYDROData/HYDROData_Profile.cxx index 6ed959ce..f970509e 100755 --- a/src/HYDROData/HYDROData_Profile.cxx +++ b/src/HYDROData/HYDROData_Profile.cxx @@ -7,6 +7,7 @@ #include #include +#include #include #include @@ -85,7 +86,21 @@ void HYDROData_Profile::Update() { HYDROData_Object::Update(); - BRepBuilderAPI_MakeWire aMakeWire; + BRepBuilderAPI_MakePolygon aMakeWire; + + ProfilePoints aProfilePoints = GetProfilePoints(); + for ( int i = 1, n = aProfilePoints.Length(); i <= n ; ++i ) + { + ProfilePoint aPoint = aProfilePoints.Value( i ); + gp_Pnt aPnt( aPoint.X(), aPoint.Y(), aPoint.Z() ); + aMakeWire.Add( aPnt ); + } + + TopoDS_Wire aWire; + if ( aMakeWire.IsDone() ) + aWire = aMakeWire.Wire(); + + /*BRepBuilderAPI_MakeWire aMakeWire; ProfilePoints aProfilePoints = GetProfilePoints(); for ( int i = 1, n = aProfilePoints.Length(); i < n ; ++i ) @@ -104,7 +119,7 @@ void HYDROData_Profile::Update() TopoDS_Wire aWire; if ( aMakeWire.IsDone() ) - aWire = aMakeWire; + aWire = aMakeWire;*/ SetShape3D( aWire ); }