]> OCCT Git - occt-copy.git/commitdiff
Porting OCCT 6.9.1 on RedHat 9
authorbugmaster <bugmaster@opencascade.com>
Tue, 10 Nov 2015 11:16:22 +0000 (14:16 +0300)
committerbugmaster <bugmaster@opencascade.com>
Tue, 10 Nov 2015 11:16:22 +0000 (14:16 +0300)
src/BRepFill/BRepFill_Evolved.cxx
src/OpenGl/OpenGl_ShaderProgram.hxx
src/OpenGl/OpenGl_Text.hxx
src/OpenGl/OpenGl_View_Raytrace.cxx
src/SelectMgr/SelectMgr_RectangularFrustum.cxx
src/SelectMgr/SelectMgr_TriangularFrustum.cxx
src/math/math_PSOParticlesPool.cxx

index 642fbca5d4ffa3e3c42c32e02455bfe7ee431661..3862f9467e2b6061fd61833dd57590eee5377b7a 100644 (file)
@@ -2224,8 +2224,11 @@ void BRepFill_Evolved::MakePipe(const TopoDS_Edge& SE,
   }
 #endif
 
-  BRepFill_Pipe Pipe(BRepLib_MakeWire(SE), GenProf);   
-  //BRepFill_Pipe Pipe = BRepFill_Pipe(BRepLib_MakeWire(SE),GenProf);  
+TopoDS_Wire SW = BRepLib_MakeWire(SE);
+  BRepFill_Pipe Pipe(SW, GenProf);    
+
+//  BRepFill_Pipe Pipe(BRepLib_MakeWire(SE), GenProf); 
+//  BRepFill_Pipe Pipe = BRepFill_Pipe(BRepLib_MakeWire(SE),GenProf);  
   
 #ifdef DRAW
   if (AffichGeom) {
index b9e58de2795b97272c0cfc0f7f31b1aa6e7cd3d5..f574ef5bc6022adbb7c13e67f7bb82a1b5cbca12 100755 (executable)
@@ -561,7 +561,7 @@ struct OpenGl_VariableSetter : public OpenGl_SetterInterface
   {
     theProgram->SetUniform (theCtx,
                             theVariable->Name().ToCString(),
-                            theVariable->Value()->As<T>());
+                            theVariable->Value()->template As<T>());
   }
 };
 
index 68d8514a5100450da4bd59abafc5ce2a5ffe417e..00fa7e9cf470edb288cb8c95d77fb91e75f8945e 100755 (executable)
@@ -61,6 +61,9 @@ public:
   Standard_EXPORT virtual void Render  (const Handle(OpenGl_Workspace)& theWorkspace) const;
   Standard_EXPORT virtual void Release (OpenGl_Context* theContext);
 
+  //! Destructor
+  Standard_EXPORT virtual ~OpenGl_Text();
+
 public: //! @name methods for compatibility with layers
 
   //! Empty constructor
@@ -98,9 +101,6 @@ public: //! @name methods for compatibility with layers
 
 protected:
 
-  //! Destructor
-  Standard_EXPORT virtual ~OpenGl_Text();
-
   friend class OpenGl_Trihedron;
   friend class OpenGl_GraduatedTrihedron;
 
index 72eebcdc09199f6a9621b43e0bc632e2b15549bc..940dcbe5459fcacc90ac76e4db729ed076bed58f 100644 (file)
@@ -1594,8 +1594,8 @@ void OpenGl_View::updateCamera (const OpenGl_Mat4& theOrientation,
   {
     for (Standard_Integer aX = -1; aX <= 1; aX += 2)
     {
-      OpenGl_Vec4 aOrigin (GLfloat(aX),
-                           GLfloat(aY),
+      OpenGl_Vec4 aOrigin (static_cast<GLfloat>(aX),
+                           static_cast<GLfloat>(aY),
                           -1.0f,
                            1.0f);
 
@@ -1605,8 +1605,8 @@ void OpenGl_View::updateCamera (const OpenGl_Mat4& theOrientation,
       aOrigin.y() = aOrigin.y() / aOrigin.w();
       aOrigin.z() = aOrigin.z() / aOrigin.w();
 
-      OpenGl_Vec4 aDirect (GLfloat(aX),
-                           GLfloat(aY),
+      OpenGl_Vec4 aDirect (static_cast<GLfloat>(aX),
+                           static_cast<GLfloat>(aY),
                            1.0f,
                            1.0f);
 
index bc8a4ade107df61e63254aa7874ee612c89ebe1a..54faa3030507d7c752710b0e17778989b3fbe76e 100644 (file)
@@ -509,7 +509,8 @@ Standard_Boolean SelectMgr_RectangularFrustum::Overlaps (const Handle(TColgp_HAr
   }
   else if (theSensType == Select3D_TOS_INTERIOR)
   {
-    gp_Vec aPolyNorm (gp_XYZ (RealLast(), RealLast(), RealLast()));
+    //gp_Vec aPolyNorm (gp_XYZ (RealLast(), RealLast(), RealLast()));
+    gp_Vec aPolyNorm (RealLast(), RealLast(), RealLast());
     if (!hasOverlap (theArrayOfPnts, aPolyNorm))
       return Standard_False;
 
@@ -545,7 +546,8 @@ Standard_Boolean SelectMgr_RectangularFrustum::Overlaps (const gp_Pnt& thePnt1,
   }
   else if (theSensType == Select3D_TOS_INTERIOR)
   {
-    gp_Vec aTriangleNormal (gp_XYZ (RealLast(), RealLast(), RealLast()));
+    //gp_Vec aTriangleNormal (gp_XYZ (RealLast(), RealLast(), RealLast()));
+    gp_Vec aTriangleNormal (RealLast(), RealLast(), RealLast());
     if (!hasOverlap (thePnt1, thePnt2, thePnt3, aTriangleNormal))
       return Standard_False;
 
index a815a484f7cc125dfa2bf7c4bb78c93d7c388b2d..2711155ee65a7c487cd8a31dd695e629e96d0340 100644 (file)
@@ -230,7 +230,8 @@ Standard_Boolean SelectMgr_TriangularFrustum::Overlaps (const Handle(TColgp_HArr
   }
   else if (theSensType == Select3D_TOS_INTERIOR)
   {
-    gp_Vec aNorm (gp_XYZ (RealLast(), RealLast(), RealLast()));
+    //gp_Vec aNorm (gp_XYZ (RealLast(), RealLast(), RealLast()));
+    gp_Vec aNorm (RealLast(), RealLast(), RealLast());
     return hasOverlap (theArrayOfPnts, aNorm);
   }
 
@@ -271,7 +272,8 @@ Standard_Boolean SelectMgr_TriangularFrustum::Overlaps (const gp_Pnt& thePnt1,
   }
   else if (theSensType == Select3D_TOS_INTERIOR)
   {
-    gp_Vec aNorm (gp_XYZ (RealLast(), RealLast(), RealLast()));
+    //gp_Vec aNorm (gp_XYZ (RealLast(), RealLast(), RealLast()));
+    gp_Vec aNorm (RealLast(), RealLast(), RealLast());
     return hasOverlap (thePnt1, thePnt2, thePnt3, aNorm);
   }
 
index f3b7bf6ca6089c8ae194911d6519d963e71af086..80a7dd72f2a94f1df3f55aad44832e14c324f4c4 100644 (file)
@@ -76,4 +76,4 @@ PSO_Particle* math_PSOParticlesPool::GetBestParticle()
 PSO_Particle* math_PSOParticlesPool::GetWorstParticle()
 {
   return &*std::max_element(myParticlesPool.begin(), myParticlesPool.end());
-}
\ No newline at end of file
+}