0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / CSLib / CSLib_Class2d.cxx
old mode 100755 (executable)
new mode 100644 (file)
index fb53e5b..35e84cb
@@ -1,11 +1,23 @@
-// File:       CSLib_Class2d.cxx
-// Created:    Wed Mar  8 15:06:24 1995
-// Author:     Laurent BUCHARD
-//             <lbr@mastox>
+// Created on: 1995-03-08
+// Created by: Laurent BUCHARD
+// Copyright (c) 1995-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.
 
 //#define No_Standard_OutOfRange
 
-#include <CSLib_Class2d.ixx>
+#include <CSLib_Class2d.hxx>
+#include <gp_Pnt2d.hxx>
 #include <Standard_ConstructionError.hxx>
 
 static inline 
@@ -220,9 +232,8 @@ Standard_Integer CSLib_Class2d::InternalSiDansOuOn(const Standard_Real Px,
   Standard_Integer nbc, i, ip1, SH, NH, iRet;
   Standard_Real *Pnts2dX, *Pnts2dY;
   Standard_Real x, y, nx, ny, aX;
-  Standard_Real aYmin, aTol;
+  Standard_Real aYmin;
   //
-  aTol=(Tolu>Tolv)? Tolu : Tolv;
   nbc = 0;
   i   = 0;
   ip1 = 1;
@@ -290,9 +301,10 @@ Standard_Integer CSLib_Class2d::InternalSiDansOuOn(const Standard_Real Px,
 //=======================================================================
 const CSLib_Class2d& CSLib_Class2d::Copy(const CSLib_Class2d& ) const 
 { 
+#ifdef OCCT_DEBUG
   cerr<<"Copy not allowed in CSLib_Class2d"<<endl;
-  Standard_ConstructionError::Raise();
-  return *this;
+#endif
+  throw Standard_ConstructionError();
 }
 //=======================================================================
 //function : Transform2d