mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
0025480: Incorrect result of BRepOffsetAPI_MakePipe
Test case for CR25480
This commit is contained in:
parent
4ca4bbe8bd
commit
32a15d12db
@ -274,18 +274,9 @@ void BRepFill_Pipe::Perform(const TopoDS_Wire& Spine,
|
||||
}
|
||||
|
||||
ShapeUpgrade_RemoveLocations RemLoc;
|
||||
RemLoc.SetRemoveLevel(TopAbs_COMPOUND);
|
||||
RemLoc.Remove(myFirst);
|
||||
myFirst = RemLoc.GetResult();
|
||||
TopLoc_Location theLoc = myFirst.Location();
|
||||
if (!theLoc.IsIdentity())
|
||||
{
|
||||
TopoDS_Shape NewMyFirst = BRepBuilderAPI_Copy(myFirst);
|
||||
RemLoc.Remove(NewMyFirst);
|
||||
NewMyFirst = RemLoc.GetResult();
|
||||
TopLoc_Location theIdentity;
|
||||
NewMyFirst.Location(theIdentity);
|
||||
myFirst = BRepBuilderAPI_Transform(NewMyFirst, theLoc.Transformation(), Standard_True);
|
||||
}
|
||||
|
||||
myLoc->Law(myLoc->NbLaw())->GetDomain(first, last);
|
||||
myLoc->Law(myLoc->NbLaw())->D0(last,M, V);
|
||||
@ -308,16 +299,6 @@ void BRepFill_Pipe::Perform(const TopoDS_Wire& Spine,
|
||||
|
||||
RemLoc.Remove(myLast);
|
||||
myLast = RemLoc.GetResult();
|
||||
theLoc = myLast.Location();
|
||||
if (!theLoc.IsIdentity())
|
||||
{
|
||||
TopoDS_Shape NewMyLast = BRepBuilderAPI_Copy(myLast);
|
||||
RemLoc.Remove(NewMyLast);
|
||||
NewMyLast = RemLoc.GetResult();
|
||||
TopLoc_Location theIdentity;
|
||||
NewMyLast.Location(theIdentity);
|
||||
myLast = BRepBuilderAPI_Transform(NewMyLast, theLoc.Transformation(), Standard_True);
|
||||
}
|
||||
|
||||
#if DRAW
|
||||
if (Affich) {
|
||||
|
26
tests/bugs/modalg_5/bug25480
Normal file
26
tests/bugs/modalg_5/bug25480
Normal file
@ -0,0 +1,26 @@
|
||||
puts "============"
|
||||
puts "OCC25480"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Incorrect result of BRepOffsetAPI_MakePipe
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file bug25480_part1.brep] a
|
||||
restore [locate_data_file bug25480_part2.brep] b
|
||||
|
||||
pipe result b a 1
|
||||
|
||||
set square 48441
|
||||
|
||||
set nb_v_good 224
|
||||
set nb_e_good 392
|
||||
set nb_w_good 196
|
||||
set nb_f_good 196
|
||||
set nb_sh_good 14
|
||||
set nb_sol_good 14
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 8
|
||||
set nb_shape_good 1044
|
||||
|
||||
set 2dviewer 1
|
Loading…
x
Reference in New Issue
Block a user