-// File: BOPTest_TolerCommands.cxx
-// Created: 10:45:01 2000
-// Author: Peter KURNEV
-// <pkv@irinox>
-
+// Created on: 2000-03-16
+// Copyright (c) 2000-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 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.
#include <BOPTest.ixx>
-//
#include <stdio.h>
-//
#include <TCollection_AsciiString.hxx>
#include <TColStd_IndexedMapOfTransient.hxx>
-//
#include <TopoDS_Shape.hxx>
#include <TopoDS_Vertex.hxx>
-//
+#include <Draw.hxx>
#include <DBRep.hxx>
-//
#include <gp_Pnt2d.hxx>
#include <Geom_Curve.hxx>
//
static
void ProcessVertex(const TopoDS_Vertex&,
- const TopTools_ListOfShape&,
- const TopTools_ListOfShape&);
+ const TopTools_ListOfShape&,
+ const TopTools_ListOfShape&);
static
void ProcessEdge(const TopoDS_Edge&, const Standard_Real);
//
Standard_Real aTolEMin=1.e-7;
if (n==3) {
- aTolEMin=atof(a[2]);
+ aTolEMin=Draw::Atof(a[2]);
}
//
// Edge Tolerances
void ProcessEdge(const TopoDS_Edge& aE, const Standard_Real aTolTreshold)
{
Standard_Integer i, aNb=23;
- Standard_Real aTolE, aD2, aTolMax2, aT1, aT2, aT, dT;
+ Standard_Real aD2, aTolMax2, aT1, aT2, aT, dT;
gp_Pnt aPC3D, aP3D;
gp_Pnt2d aPC2D;
return;
}
//
- aTolE =BRep_Tool::Tolerance(aE);
//
aTolMax2=sqrt(aTolMax2);
const TopTools_ListOfShape& aLE,
const TopTools_ListOfShape& aLF)
{
- Standard_Real aTol, aTol2, aD2, aTolMax2, aTolE, aParam;
+ Standard_Real aTol, aD2, aTolMax2, aTolE, aParam;
gp_Pnt aPC3D;
gp_Pnt2d aPC2D;
TopAbs_Orientation anOrV;
Handle(BRep_TVertex)& TV = *((Handle(BRep_TVertex)*) &aV.TShape());
const gp_Pnt& aPV3D = TV->Pnt();
aTol =BRep_Tool::Tolerance(aV);
- aTol2=aTol*aTol;
//
anIt.Initialize(aLE);
for (; anIt.More(); anIt.Next()) {