From 92d4ccee76958a53f8beaf319d540d044faad129 Mon Sep 17 00:00:00 2001 From: asl Date: Mon, 27 Jan 2014 10:24:13 +0000 Subject: [PATCH] patch from JGV for channels --- src/HYDROData/HYDROData_Pipes.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; -- 2.39.2