X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FGeomAdaptor%2FGeomAdaptor.cxx;h=78805029ba754c5fdf64de04c8071361aaa19ddd;hp=4378e5d609bfd57b3bcf8c3d4a35678e1acd1cd1;hb=7afe616f1f65dd4805171993b916c8402d4c52aa;hpb=f41525d378b18496bc25b4733857072511130c18 diff --git a/src/GeomAdaptor/GeomAdaptor.cxx b/src/GeomAdaptor/GeomAdaptor.cxx index 4378e5d609..78805029ba 100644 --- a/src/GeomAdaptor/GeomAdaptor.cxx +++ b/src/GeomAdaptor/GeomAdaptor.cxx @@ -101,8 +101,8 @@ Handle(Geom_Curve) GeomAdaptor::MakeCurve (const Adaptor3d_Curve& HC) //function : MakeSurface //purpose : //======================================================================= - -Handle(Geom_Surface) GeomAdaptor::MakeSurface(const Adaptor3d_Surface& HS) +Handle(Geom_Surface) GeomAdaptor::MakeSurface(const Adaptor3d_Surface& HS, + const Standard_Boolean theTrimFlag) { Handle(Geom_Surface) S; @@ -148,7 +148,7 @@ Handle(Geom_Surface) GeomAdaptor::MakeSurface(const Adaptor3d_Surface& HS) case GeomAbs_OffsetSurface: S = new Geom_OffsetSurface(GeomAdaptor::MakeSurface(HS.BasisSurface()->Surface()), - HS.OffsetValue()); + HS.OffsetValue()); break; case GeomAbs_OtherSurface: @@ -156,7 +156,7 @@ Handle(Geom_Surface) GeomAdaptor::MakeSurface(const Adaptor3d_Surface& HS) break; } - if ( S.IsNull() ) + if ( S.IsNull() || !theTrimFlag) return S; // trim the surface if necassary.