0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / IGESConvGeom / IGESConvGeom_GeomBuilder.cxx
index bc0a55e..7cd2c62 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-#include <IGESConvGeom_GeomBuilder.ixx>
-#include <TColStd_HArray1OfReal.hxx>
-#include <TColStd_HArray2OfReal.hxx>
+
+#include <gp.hxx>
+#include <gp_Ax1.hxx>
+#include <gp_Ax2.hxx>
+#include <gp_Ax3.hxx>
+#include <gp_Trsf.hxx>
+#include <gp_XY.hxx>
+#include <gp_XYZ.hxx>
+#include <IGESConvGeom_GeomBuilder.hxx>
+#include <IGESGeom_CopiousData.hxx>
+#include <IGESGeom_TransformationMatrix.hxx>
 #include <Interface_Translates.hxx>
 #include <Standard_DomainError.hxx>
-#include <gp.hxx>
-
+#include <TColStd_HArray1OfReal.hxx>
+#include <TColStd_HArray2OfReal.hxx>
 
 static Standard_Real epsl = 1.E-10;
 static Standard_Real epsa = 1.E-10;
@@ -63,7 +71,7 @@ static Standard_Real epsa = 1.E-10;
 {
   Standard_Integer num, nb = theXYZ->Length();
   if (datatype < 1 || datatype > 3 || nb == 0 || (polyline && datatype == 3))
-    Standard_DomainError::Raise ("IGESConvGeom_GeomBuilder : MakeCopiousData");
+    throw Standard_DomainError("IGESConvGeom_GeomBuilder : MakeCopiousData");
 
   Standard_Integer nbd = datatype+1;  // 1->2  2->3   et   3->6
   if (datatype == 3) nbd = 6;
@@ -89,35 +97,6 @@ static Standard_Real epsa = 1.E-10;
   return res;
 }
 
-    Handle(TColgp_HArray1OfXY)   IGESConvGeom_GeomBuilder::MakeXY  () const
-{
-  Handle(TColgp_HArray1OfXY) res;
-  Standard_Integer num, nb = theXYZ->Length();
-  if (nb == 0) return res;
-  res = new TColgp_HArray1OfXY (1,nb);
-  for (num = 1; num <= nb; num ++) {
-    const gp_XYZ& pnt = theXYZ->Value(num);
-    res->SetValue (num , gp_XY (pnt.X(),pnt.Y()) );
-  }
-  return res;
-}
-
-    Handle(TColgp_HArray1OfXYZ)  IGESConvGeom_GeomBuilder::MakeXYZ () const
-{
-  Handle(TColgp_HArray1OfXYZ) res;
-/*
-  Standard_Integer num, nb = theXYZ->Length();
-  if (nb == 0) return res;
-  res = new TColgp_HArray1OfXYZ (1,nb);
-  for (num = 1; num <= nb; num ++) {
-    res->SetValue (num , theXYZ->Value(num) );
-  }
-*/
-  SeqToArray(theXYZ,res,TColgp_HArray1OfXYZ);
-  return res;
-}
-
-
     gp_Trsf  IGESConvGeom_GeomBuilder::Position () const
       {  return thepos;  }