mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024096: Eliminate compiler warning C4505 in MSVC++ with warning level 4
Removed obsolete functions from sources. Some useful debug functions were 'defined' ( put into #ifdef ...#endif ) Removed some redundant code
This commit is contained in:
@@ -3973,47 +3973,3 @@ void EnlargeZone(const Handle(Adaptor3d_HSurface)& MaSurface,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEB
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <Poly_Triangulation.hxx>
|
||||
#include <TColgp_Array1OfPnt.hxx>
|
||||
#include <Poly_Array1OfTriangle.hxx>
|
||||
#include <BRep_TFace.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : TriangleShape
|
||||
//purpose : shape with triangulation containing triangles
|
||||
//=======================================================================
|
||||
static TopoDS_Shape TriangleShape(const IntPolyh_ArrayOfTriangles & TTriangles,
|
||||
const IntPolyh_ArrayOfPoints & TPoints)
|
||||
{
|
||||
TopoDS_Face aFace;
|
||||
if (TPoints.NbItems() < 1 || TTriangles.NbItems() < 1) return aFace;
|
||||
|
||||
Handle(Poly_Triangulation) aPTriangulation =
|
||||
new Poly_Triangulation(TPoints.NbItems(),TTriangles.NbItems(),Standard_False);
|
||||
TColgp_Array1OfPnt & aPNodes = aPTriangulation->ChangeNodes();
|
||||
Poly_Array1OfTriangle & aPTrialgles = aPTriangulation->ChangeTriangles();
|
||||
|
||||
Standard_Integer i;
|
||||
for (i=0; i<TPoints.NbItems(); i++) {
|
||||
const IntPolyh_Point& P = TPoints[i];
|
||||
aPNodes(i+1).SetCoord(P.X(), P.Y(), P.Z());
|
||||
}
|
||||
for (i=0; i<TTriangles.NbItems(); i++) {
|
||||
const IntPolyh_Triangle& T = TTriangles[i];
|
||||
aPTrialgles(i+1).Set(T.FirstPoint()+1, T.SecondPoint()+1, T.ThirdPoint()+1);
|
||||
}
|
||||
|
||||
Handle(BRep_TFace) aTFace = new BRep_TFace;
|
||||
aTFace->Triangulation(aPTriangulation);
|
||||
aFace.TShape(aTFace);
|
||||
return aFace;
|
||||
}
|
||||
#endif
|
||||
|
||||
//#define MyTolerance 10.0e-7
|
||||
//#define MyConfusionPrecision 10.0e-12
|
||||
//#define SquareMyConfusionPrecision 10.0e-24
|
||||
|
@@ -58,16 +58,6 @@ static
|
||||
const Standard_Integer NumTri,
|
||||
const Standard_Integer NewTriNum,
|
||||
IntPolyh_ArrayOfEdges & TEdges) ;
|
||||
static
|
||||
void TestOldEdgeB(const Standard_Integer NumTA,
|
||||
const Standard_Integer numPtT1,
|
||||
const Standard_Integer numPtT2,
|
||||
const Standard_Integer T1,
|
||||
const Standard_Integer T2,
|
||||
const IntPolyh_ArrayOfTriangles & TTriangles,
|
||||
const Standard_Integer Edge1,
|
||||
const Standard_Integer Edge3,
|
||||
IntPolyh_ArrayOfEdges & TEdges );
|
||||
|
||||
//=======================================================================
|
||||
//function : IntPolyh_Triangle
|
||||
@@ -603,42 +593,6 @@ void OldEdge(const Standard_Integer EdgeN,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : TestOldEdgeB
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void TestOldEdgeB(const Standard_Integer NumTA,
|
||||
const Standard_Integer numPtT1,
|
||||
const Standard_Integer /*numPtT2*/,
|
||||
const Standard_Integer T1,
|
||||
const Standard_Integer T2,
|
||||
const IntPolyh_ArrayOfTriangles & /*TTriangles*/,
|
||||
const Standard_Integer Edge1,
|
||||
const Standard_Integer Edge3,
|
||||
IntPolyh_ArrayOfEdges & TEdges )
|
||||
{
|
||||
|
||||
if( (TEdges[Edge1].FirstPoint() == numPtT1)
|
||||
||(TEdges[Edge1].SecondPoint()== numPtT1) ) {
|
||||
/// L'edge1 est commun aux triangles NumTA et T1
|
||||
if(TEdges[Edge1].FirstTriangle()==NumTA)
|
||||
TEdges[Edge1].SetFirstTriangle(T1);
|
||||
else TEdges[Edge1].SetSecondTriangle(T1);
|
||||
|
||||
if(TEdges[Edge3].FirstTriangle()==NumTA)
|
||||
TEdges[Edge3].SetFirstTriangle(T2);
|
||||
else TEdges[Edge3].SetSecondTriangle(T2);
|
||||
}
|
||||
else {
|
||||
/// L'edge3 est commun aux triangles NumTA et T1
|
||||
if(TEdges[Edge3].FirstTriangle()==NumTA)
|
||||
TEdges[Edge3].SetFirstTriangle(T1);
|
||||
else TEdges[Edge3].SetSecondTriangle(T1);
|
||||
if(TEdges[Edge1].FirstTriangle()==NumTA)
|
||||
TEdges[Edge1].SetFirstTriangle(T2);
|
||||
else TEdges[Edge1].SetSecondTriangle(T2);
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : MiddleRefinement
|
||||
//purpose :
|
||||
|
Reference in New Issue
Block a user