itcr.Next();
}
L.Identity();
+ First = Last = 0.;
return nullCurve;
}
if (C3d.IsNull())
{
+ First = Last = 0.;
return nullPCurve;
}
return pc;
}
+ First = Last = 0.;
return nullPCurve;
}
itcr.Next();
}
- C = Handle(Geom2d_Curve)();
- S = Handle(Geom_Surface)();
- L = TopLoc_Location();
+ C.Nullify();
+ S.Nullify();
+ L.Identity();
+ First = Last = 0.;
}
//=======================================================================
itcr.Next();
}
- C = Handle(Geom2d_Curve)();
- S = Handle(Geom_Surface)();
- L = TopLoc_Location();
+ C.Nullify();
+ S.Nullify();
+ L.Identity();
+ First = Last = 0.;
}
//=======================================================================
itcr.Next();
}
- L = TopLoc_Location();
- P = Handle(Poly_Polygon2D)();
- S = Handle(Geom_Surface)();
+ L.Identity();
+ P.Nullify();
+ S.Nullify();
}
//=======================================================================
itcr.Next();
}
- L = TopLoc_Location();
- P = Handle(Poly_Polygon2D)();
- S = Handle(Geom_Surface)();
+ L.Identity();
+ P.Nullify();
+ S.Nullify();
}
//=======================================================================
itcr.Next();
}
- L = TopLoc_Location();
- P = Handle(Poly_PolygonOnTriangulation)();
- T = Handle(Poly_Triangulation)();
+ L.Identity();
+ P.Nullify();
+ T.Nullify();
}
//=======================================================================
itcr.Next();
}
- L = TopLoc_Location();
- P = Handle(Poly_PolygonOnTriangulation)();
- T = Handle(Poly_Triangulation)();
+ L.Identity();
+ P.Nullify();
+ T.Nullify();
}
//=======================================================================
// set the range to all the representations
const BRep_TEdge* TE = static_cast<const BRep_TEdge*>(E.TShape().get());
BRep_ListIteratorOfListOfCurveRepresentation itcr(TE->Curves());
-
+
while (itcr.More()) {
const Handle(BRep_CurveRepresentation)& cr = itcr.Value();
if (cr->IsCurve3D()) {
if (!CR->Curve3D().IsNull()) {
First = CR->First();
Last = CR->Last();
- break;
+ return;
}
}
else if (cr->IsCurveOnSurface()) {
const BRep_GCurve* CR = static_cast<const BRep_GCurve*>(cr.get());
First = CR->First();
Last = CR->Last();
- break;
+ return;
}
itcr.Next();
}
+ First = Last = 0.;
}
//=======================================================================
Range(E,First,Last);
}
E.TShape()->Modified(Standard_True);
- }
+}
//=======================================================================
//function : Range
ElSLib::Parameters(pln,PL,u,v);
}
PLast.SetCoord(u,v);
- }
+ }
+ else
+ {
+ PFirst.SetCoord (0., 0.);
+ PLast.SetCoord (0., 0.);
+ }
}
//=======================================================================
--- /dev/null
+puts "============"
+puts "OCC27568"
+puts "============"
+puts ""
+######################################################
+# Exception is thrown when a degenerated edge is added to a wire
+######################################################
+
+restore [locate_data_file bug27568_curves.brep] c
+
+explode c
+
+wire result c_1 c_2
+
+checknbshapes result -vertex 2 -edge 2 -wire 1
+
+smallview
+fit
+checkview -screenshot -2d -path ${imagedir}/${casename}.png