B.MakeCompound(Comp);
for (isec=1; isec <= NbLaw+1; isec++)
for (ipath=1, IPath=IFirst; ipath<= NbPath+1; ipath++, IPath++) {
- if (ipath <= NbPath) myUEdges->SetValue(isec, IPath, UEdge(isec, ipath));
- if (isec <= NbLaw) myVEdges->SetValue(isec, IPath, VEdge(isec, ipath));
- if ((ipath <= NbPath) && (isec <= NbLaw) &&
- (myFaces->Value(isec, IPath).ShapeType() == TopAbs_FACE))
- B.Add(Comp, myFaces->Value(isec, IPath));
+ if (ipath <= NbPath) myUEdges->SetValue(isec, IPath, UEdge(isec, ipath));
+ if (isec <= NbLaw) myVEdges->SetValue(isec, IPath, VEdge(isec, ipath));
+ if ((ipath <= NbPath) && (isec <= NbLaw) &&
+ !myFaces->Value(isec, IPath).IsNull() &&
+ myFaces->Value(isec, IPath).ShapeType() == TopAbs_FACE)
+ B.Add(Comp, myFaces->Value(isec, IPath));
}
BRepLib::EncodeRegularity(Comp, myTolAngular);
}
--- /dev/null
+puts "============"
+puts "OCC27862"
+puts "============"
+puts ""
+######################################################
+# Exception in BRepOffsetAPI_MakePipeShell
+######################################################
+
+restore [locate_data_file bug27862.brep] a
+explode a
+pipe r a_1 a_2