From: asl Date: Mon, 27 Jan 2014 10:24:13 +0000 (+0000) Subject: patch from JGV for channels X-Git-Tag: BR_hydro_v_1_0~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92d4ccee76958a53f8beaf319d540d044faad129;p=modules%2Fhydro.git patch from JGV for channels --- diff --git a/src/HYDROData/HYDROData_Pipes.cxx b/src/HYDROData/HYDROData_Pipes.cxx index 141dd5bd..997f8a20 100644 --- a/src/HYDROData/HYDROData_Pipes.cxx +++ b/src/HYDROData/HYDROData_Pipes.cxx @@ -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;