}
#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) {
{
theProgram->SetUniform (theCtx,
theVariable->Name().ToCString(),
- theVariable->Value()->As<T>());
+ theVariable->Value()->template As<T>());
}
};
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
protected:
- //! Destructor
- Standard_EXPORT virtual ~OpenGl_Text();
-
friend class OpenGl_Trihedron;
friend class OpenGl_GraduatedTrihedron;
{
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);
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);
}
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;
}
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;
}
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);
}
}
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);
}
PSO_Particle* math_PSOParticlesPool::GetWorstParticle()
{
return &*std::max_element(myParticlesPool.begin(), myParticlesPool.end());
-}
\ No newline at end of file
+}