0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[occt.git] / src / GeomPlate / GeomPlate_Surface.cxx
old mode 100755 (executable)
new mode 100644 (file)
index f40716a..f083969
@@ -1,7 +1,19 @@
-// File:       GeomPlate_Surface.cxx
-// Created:    Thu Nov 21 13:47:59 1996
-// Author:     Joelle CHAUVET
-//             <jct@sgi38>
+// Created on: 1996-11-21
+// Created by: Joelle CHAUVET
+// Copyright (c) 1996-1999 Matra Datavision
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
 // Modified:   Wed Mar  5 09:45:42 1997
 //    by:      Joelle CHAUVET
 //              G1134 : new methods RealBounds and Constraints
 //    by:      Jerome LEMONIER
 //              Correction de la methode D2 (faute de frappe dans le code)
 //              Correction de la methode D1 (D0 inutile)
 
-#include <GeomPlate_Surface.ixx>
+#include <Geom_Curve.hxx>
+#include <Geom_Geometry.hxx>
+#include <Geom_Surface.hxx>
+#include <Geom_UndefinedDerivative.hxx>
+#include <Geom_UndefinedValue.hxx>
+#include <GeomPlate_Surface.hxx>
+#include <gp_GTrsf2d.hxx>
+#include <gp_Pnt.hxx>
+#include <gp_Trsf.hxx>
+#include <gp_Vec.hxx>
 #include <gp_XY.hxx>
+#include <Plate_Plate.hxx>
+#include <Standard_NoSuchObject.hxx>
+#include <Standard_RangeError.hxx>
+#include <Standard_Type.hxx>
 
+IMPLEMENT_STANDARD_RTTIEXT(GeomPlate_Surface,Geom_Surface)
 
 //=======================================================================
 //function : GeomPlate_Surface
 //purpose  : 
 //=======================================================================
-
 GeomPlate_Surface::GeomPlate_Surface(const Handle(Geom_Surface)& Surfinit,const Plate_Plate& Surfinter) : mySurfinter(Surfinter),mySurfinit(Surfinit)
 {
 }
@@ -364,10 +388,8 @@ Handle(Geom_Surface) GeomPlate_Surface::CallSurfinit() const
 void GeomPlate_Surface::SetBounds(const Standard_Real Umin, const Standard_Real Umax, const Standard_Real Vmin, const Standard_Real Vmax)
 {
   if ((Umin>Umax) || (Vmin>Vmax)) Standard_Failure::Raise("Bounds haven't the good sense");
-  else
-    myUmin=Umin;myUmax=Umax;myVmin=Vmin;myVmax=Vmax;
   if ((Umin==Umax) || (Vmin==Vmax)) Standard_Failure::Raise("Bounds are equal");
-
+  myUmin=Umin;myUmax=Umax;myVmin=Vmin;myVmax=Vmax;
 }