if (aW.IsNull())
continue;
NbWires++;
+ if (aW.Orientation() == TopAbs_INTERNAL)
+ //cant write internal wires/edges
+ continue;
// Try to reorder edges
Handle(ShapeFix_Wire) aSFW = new ShapeFix_Wire( aW, theFace, Precision::Confusion() );
aSFW->FixReorder();
Handle(ShapeExtend_WireData) aSEWD = aSFW->WireData();
Standard_Integer nbE = aSEWD->NbEdges();
+ if (nbE == 0)
+ continue;
//
anPartStart.push_back(x.size());
NCollection_Sequence<gp_Pnt2d> aPnts;
void HYDROData_ShapeFile::ReadSHPPolygon(SHPObject* anObj, int i, TopoDS_Face& F)
{
+ if (!anObj)
+ return;
TopoDS_Wire W;
TopoDS_Edge E;
int nParts = anObj->nParts;