#include <TopoDS_Vertex.hxx>
#include <TopoDS.hxx>
#include <TopAbs_ShapeEnum.hxx>
+#include <TopTools_IndexedMapOfShape.hxx>
+#include <TopExp.hxx>
//=======================================================================
//function : BRepOffsetAPI_MakePipe
void BRepOffsetAPI_MakePipe::Build()
{
myShape = myPipe.Shape();
- Done();
+ //Check for emptiness of result
+ TopTools_IndexedMapOfShape theMap;
+ TopExp::MapShapes(myShape, theMap);
+ if (theMap.Extent() == 1)
+ NotDone();
+ else
+ Done();
}
return bid;
}
+//=======================================================================
+//function : ErrorOnSurface
+//purpose :
+//=======================================================================
+
+Standard_Real BRepOffsetAPI_MakePipe::ErrorOnSurface() const
+{
+ return myPipe.ErrorOnSurface();
+}