BRep_Builder B;
Standard_Integer NbPath = ILast - IFirst;
Standard_Integer NbLaw = mySec->NbLaw();
- Standard_Boolean uclose, vclose, constSection, hasdegen = Standard_False;
+ Standard_Boolean uclose, vclose, global_vclose, constSection, hasdegen = Standard_False;
constSection = mySec->IsConstant();
uclose = mySec->IsUClosed();
- vclose = (mySec->IsVClosed() && myLoc->IsClosed()) &&
- (NbPath == myLoc->NbLaw()) && (myLoc->IsG1(0, myTol3d)>= 0);
+ global_vclose = (myLoc->IsClosed()) && (myLoc->IsG1(0, myTol3d)>= 0);
+ vclose = global_vclose && (mySec->IsVClosed()) && (NbPath == myLoc->NbLaw());
Error = 0.;
// (1) Construction of all surfaces
myTol3d);
else
{
- if (ipath != NbPath || vclose)
+ if (ipath != NbPath ||
+ vclose ||
+ (global_vclose && ILast == myLoc->NbLaw()+1))
+
UpdateEdge(TopoDS::Edge(VEdge(isec, ipath+1)),
S, exuv, VLast);
else //ipath == NbPath && !vclose => rebuild last edge
--- /dev/null
+puts "=============================================================="
+puts "OCC29813: BRepFill_PipeShell algorithm produces invalid result"
+puts "=============================================================="
+puts ""
+
+binrestore [locate_data_file cut_extrudewire_1.bin] sw
+binrestore [locate_data_file cut_toolwire_1.bin] tw
+
+mksweep sw
+addsweep tw
+buildsweep result -R
+
+checkshape result
+
+checknbshapes result -vertex 42 -edge 78 -wire 35 -face 35 -shell 1
+
+checkprops result -s 3841.56
+
+checkview -display result -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "=============================================================="
+puts "OCC29813: BRepFill_PipeShell algorithm produces invalid result"
+puts "=============================================================="
+puts ""
+
+binrestore [locate_data_file cut_extrudewire_2.bin] sw
+binrestore [locate_data_file cut_toolwire_1.bin] tw
+
+mksweep sw
+addsweep tw
+buildsweep result -R
+
+checkshape result
+
+checknbshapes result -vertex 60 -edge 112 -wire 50 -face 50 -shell 1
+
+checkprops result -s 5327.76
+
+checkview -display result -2d -path ${imagedir}/${test_image}.png
--- /dev/null
+puts "=============================================================="
+puts "OCC29813: BRepFill_PipeShell algorithm produces invalid result"
+puts "=============================================================="
+puts ""
+
+binrestore [locate_data_file cut_extrudewire_3.bin] sw
+binrestore [locate_data_file cut_toolwire_3.bin] tw
+
+mksweep sw
+addsweep tw
+buildsweep result -R
+
+checkshape result
+
+checknbshapes result -vertex 66 -edge 123 -wire 55 -face 55 -shell 1
+
+checkprops result -s 15065.5
+
+checkview -display result -2d -path ${imagedir}/${test_image}.png