-// File: ViewerTest_FilletCommands.cxx
-// Created: Fri Nov 20 16:58:22 1998
-// Author: Robert COUBLANC
-// <rob@robox.paris1.matra-dtv.fr>
+// Created on: 1998-11-20
+// Created by: Robert COUBLANC
+// Copyright (c) 1998-1999 Matra Datavision
+// Copyright (c) 1999-2012 OPEN CASCADE SAS
+//
+// The content of this file is subject to the Open CASCADE Technology Public
+// License Version 6.5 (the "License"). You may not use the content of this file
+// except in compliance with the License. Please obtain a copy of the License
+// at http://www.opencascade.org and read it completely before using this file.
+//
+// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
+// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+//
+// The Original Code and all software distributed under the License is
+// distributed on an "AS IS" basis, without warranty of any kind, and the
+// Initial Developer hereby disclaims all such warranties, including without
+// limitation, any warranties of merchantability, fitness for a particular
+// purpose or non-infringement. Please see the License for the specific terms
+// and conditions governing the rights and limitations under the License.
+
#ifdef HAVE_CONFIG_H
# include <config.h>
return 0;
}
else if(narg == 5){
- ta = atof(a[1]);
- t3d = atof(a[2]);
- t2d = atof(a[3]);
- fl = atof(a[4]);
+ ta = Draw::Atof(a[1]);
+ t3d = Draw::Atof(a[2]);
+ t2d = Draw::Atof(a[3]);
+ fl = Draw::Atof(a[4]);
return 0;
}
return 1;
if (narg<5) return 1;
Standard_Integer NbToPick = (narg -4)/2;
-#ifdef DEB
- Standard_Boolean autonaming = !strcasecmp(a[3],".");
-#endif
Handle(TopTools_HArray1OfShape) arr = new TopTools_HArray1OfShape(1,NbToPick);
if(ViewerTest::PickShapes(TopAbs_EDGE,arr)){
for(Standard_Integer i=1;i<=NbToPick;i++){
TopoDS_Edge E;
Standard_Integer nbedge = 0;
for (Standard_Integer ii = 1; ii < (narg-1)/2; ii++){
- Rad = atof(a[2*ii + 1]);
+ Rad = Draw::Atof(a[2*ii + 1]);
TopoDS_Shape aLocalShape = DBRep::Get(a[(2*ii+2)],TopAbs_EDGE);
E = TopoDS::Edge(aLocalShape);
// E = TopoDS::Edge(DBRep::Get(a[(2*ii+2)],TopAbs_EDGE));