]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
patch from JGV for channels
authorasl <asl@opencascade.com>
Mon, 27 Jan 2014 10:24:13 +0000 (10:24 +0000)
committerasl <asl@opencascade.com>
Mon, 27 Jan 2014 10:24:13 +0000 (10:24 +0000)
src/HYDROData/HYDROData_Pipes.cxx

index 141dd5bd0f0652e3faa1e95c0c58a3ddac181fcd..997f8a208bf744e90d917c921720e1ac85bc0654 100644 (file)
@@ -1220,7 +1220,10 @@ Standard_Boolean HYDROData_Canal3dAnd2d::Create3dPresentation()
   mySweep3d = new BRepOffsetAPI_MakePipeShell(myGuideline);
   mySweep3d->SetMode(gp::DZ()); //optional
   mySweep3d->Add(myTransformedProfile3d);
-  //mySweep3d->SetTransitionMode(BRepBuilderAPI_RightCorner); //optional
+  //Set approx parameters
+  mySweep3d->SetMaxDegree(14);
+  mySweep3d->SetMaxSegments(500);
+  ///////////////////////
   mySweep3d->Build();
   if (!mySweep3d->IsDone())
     return Standard_False;
@@ -1236,7 +1239,10 @@ Standard_Boolean HYDROData_Canal3dAnd2d::Create2dPresentation()
   mySweep2d = new BRepOffsetAPI_MakePipeShell(myProjectedGuideline);
   mySweep2d->SetMode(gp::DZ()); //optional
   mySweep2d->Add(myTransformedProfile2d);
-  //mySweep2d->SetTransitionMode(BRepBuilderAPI_RightCorner); //optional
+  //Set approx parameters
+  mySweep2d->SetMaxDegree(14);
+  mySweep2d->SetMaxSegments(500);
+  ///////////////////////
   mySweep2d->Build();
   if (!mySweep2d->IsDone())
     return Standard_False;