{
myEdge = E;
myFace = F;
- Standard_Real pf, pl;
- const Handle(Geom2d_Curve) PC = BRep_Tool::CurveOnSurface(E, F, pf, pl);
- Geom2dAdaptor_Curve::Load(PC, pf, pl);
+ Standard_Real aFirs, aLast;
+ const Handle(Geom2d_Curve) aPCurve = BRep_Tool::CurveOnSurface(E, F, aFirs, aLast);
+ if (!aPCurve.IsNull())
+ {
+ Geom2dAdaptor_Curve::Load(aPCurve, aFirs, aLast);
+ }
}
//=================================================================================================
theNumberOfIntervals = aPairSeq.Length();
if (aPairSeq.Length() == 2)
+ {
theMinCoord = aPairSeq(2).first - thePeriod;
- else
+ }
+ else if (aPairSeq.Length() > 0)
+ {
theMinCoord = aPairSeq(1).first;
+ }
+ else
+ {
+ return Standard_False;
+ }
theMaxCoord = aPairSeq(1).second;
return Standard_True;