1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0024738: BRepOffsetAPI_MakePipe algorithm fails on circular path and section (the case where result is part of sphere)

Test case for issue CR24738
This commit is contained in:
jgv
2014-03-27 16:59:41 +04:00
committed by bugmaster
parent b9cd9e62c3
commit 9ba2c30f1a
3 changed files with 68 additions and 15 deletions

View File

@@ -1435,13 +1435,17 @@ static TopoDS_Edge BuildEdge(const Handle(Geom_Surface)& S,
// Associate 2d
Handle(Geom2d_Line) L;
TopLoc_Location Loc;
Standard_Real Umin, Umax, Vmin, Vmax;
S->Bounds(Umin, Umax, Vmin, Vmax);
if (isUiso) {
gp_Pnt2d P(ValIso, 0);
//gp_Pnt2d P(ValIso, 0);
gp_Pnt2d P( ValIso, Vmin - Iso->FirstParameter() );
gp_Vec2d V(0., 1.);
L = new (Geom2d_Line) (P, V);
}
else {
gp_Pnt2d P(0., ValIso);
//gp_Pnt2d P(0., ValIso);
gp_Pnt2d P( Umin -Iso->FirstParameter() , ValIso );
gp_Vec2d V(1., 0.);
L = new (Geom2d_Line) (P, V);
}