mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0026568: Modeling Algorithms - Exception when creating pipe
BRepFill_Pipe.cxx: protection against wrong shape type is added GeomFill_Sweep.cxx: protection against using 0-vector to create Direction is added bug26568: test script is corrected: "TODO ..." is removed
This commit is contained in:
@@ -760,8 +760,11 @@ TopoDS_Shape BRepFill_Pipe::MakeShape(const TopoDS_Shape& S,
|
||||
TopoDS_Face F;
|
||||
for (ii=InitialLength+1; ii<=myFaces->ColLength(); ii++) {
|
||||
for (jj=1; jj<=myFaces->RowLength(); jj++) {
|
||||
F = TopoDS::Face(myFaces->Value(ii, jj));
|
||||
if (!F.IsNull()) B.Add(result, F);
|
||||
if (myFaces->Value(ii, jj).ShapeType() == TopAbs_FACE)
|
||||
{
|
||||
F = TopoDS::Face(myFaces->Value(ii, jj));
|
||||
if (!F.IsNull()) B.Add(result, F);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user