From: KafAndrey Date: Wed, 5 Feb 2020 10:45:40 +0000 (+0300) Subject: 0031217: start testing bug X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=61a172ce89ce9fc2a6d9e4ee4a66694cfaea8158;p=occt-copy.git 0031217: start testing bug --- diff --git a/src/QABugs/QABugs_11.cxx b/src/QABugs/QABugs_11.cxx index dff3a55c62..1dae837c9b 100644 --- a/src/QABugs/QABugs_11.cxx +++ b/src/QABugs/QABugs_11.cxx @@ -372,8 +372,53 @@ static int OCC105(Draw_Interpretor& di, Standard_Integer argc, const char ** arg } -#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +Standard_Integer OCC31217(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) +{ + TColgp_Array1OfPnt pathPoles(1, 4); + pathPoles(1) = gp_Pnt(0, 0, 0); + pathPoles(2) = gp_Pnt(100, 0, 0); + pathPoles(3) = gp_Pnt(100, 100, 0); + pathPoles(4) = gp_Pnt(0, 99, 0); + + Handle(Geom_BezierCurve) path = new Geom_BezierCurve(pathPoles); + + Handle(Geom_Curve) c1 = GeomConvert::CurveToBSplineCurve(new Geom_TrimmedCurve(new Geom_Circle(gp_Ax2(gp::Origin(), gp::DX()), 10.0), 0, 2 * M_PI), Convert_Polynomial); + Handle(Geom_Curve) c2 = GeomConvert::CurveToBSplineCurve(new Geom_TrimmedCurve(new Geom_Circle(gp_Ax2(gp::Origin(), gp::DX()), 10.0), 0, 2 * M_PI), Convert_Polynomial); + + GeomFill_Pipe pipe(path, c1, c2); + pipe.Perform(); + + Handle(Geom_Surface) pipeSurf = pipe.Surface(); + + DrawTrSurf::Set("c1", c1); + DrawTrSurf::Set("c2", c2); + DrawTrSurf::Set("bc", path); + DrawTrSurf::Set("surf", pipeSurf); + + TopoDS_Shape surfFace = BRepBuilderAPI_MakeFace(pipeSurf, Precision::Confusion()); + + Handle(AIS_InteractiveContext) myAISContext = ViewerTest::GetAISContext(); + Handle(AIS_Shape) aShape = new AIS_Shape(surfFace); + myAISContext->Display(aShape, AIS_Shaded, 0, true); + + return 0; +} + + + +#include + static int pipe_OCC9 (Draw_Interpretor& di, Standard_Integer n, const char ** a) { @@ -4873,5 +4918,6 @@ void QABugs::Commands_11(Draw_Interpretor& theCommands) { theCommands.Add("CR23403", "CR23403 string", __FILE__, CR23403, group); theCommands.Add("OCC23429", "OCC23429 res shape tool [appr]", __FILE__, OCC23429, group); theCommands.Add("OCC28478", "OCC28478 [nb_outer=3 [nb_inner=2] [-inf]: test progress indicator on nested cycles", __FILE__, OCC28478, group); + theCommands.Add("OCC31217", "OCC31217", __FILE__, OCC31217, group); return; }