// Created on: 1996-12-16
// Created by: Bruno DUMORTIER
// Copyright (c) 1996-1999 Matra Datavision
-// Copyright (c) 1999-2012 OPEN CASCADE SAS
+// Copyright (c) 1999-2014 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.
+// This file is part of Open CASCADE Technology software library.
//
-// 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.
+// 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.
//
-// 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.
-
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
#include <stdio.h>
#include <OSD_Chronometer.hxx>
// variables for performance
Standard_Real t_mkcurve;
-//Standard_IMPORT extern void ChFi3d_InitChron(OSD_Chronometer& ch);
-Standard_EXPORT void ChFi3d_InitChron(OSD_Chronometer& ch);
-//Standard_IMPORT extern void ChFi3d_ResultChron(OSD_Chronometer & ch,
-Standard_IMPORT void ChFi3d_ResultChron(OSD_Chronometer & ch,
- Standard_Real& time);
+extern void ChFi3d_InitChron(OSD_Chronometer& ch);
+extern void ChFi3d_ResultChron(OSD_Chronometer & ch, Standard_Real& time);
#ifdef DRAW
static Standard_Boolean Affich = Standard_False;
static char name[100];
TopLoc_Location Loc;
Standard_Real Tol = Precision::Confusion();
- Standard_Boolean IsComputed = Standard_False;
-
// Seach only isos on analytical surfaces.
Geom2dAdaptor_Curve C(Curve);
GeomAdaptor_Surface S(Surf);
Circle->Reverse();
TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
}
- IsComputed = Standard_True;
}
else if ( STy == GeomAbs_Cylinder) {
gp_Cylinder Cyl = S.Cylinder();
if ( D.IsOpposite(gp::DX2d(),Precision::Angular()))
Circle->Reverse();
TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
- IsComputed = Standard_True;
}
else if ( STy == GeomAbs_Cone) {
gp_Cone Cone = S.Cone();
if ( D.IsOpposite(gp::DX2d(),Precision::Angular()))
Circle->Reverse();
TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
- IsComputed = Standard_True;
}
else if ( STy == GeomAbs_Torus) {
gp_Torus Tore = S.Torus();
if ( D.IsOpposite(gp::DX2d(),Precision::Angular()))
Circle->Reverse();
TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
- IsComputed = Standard_True;
}
}
else if ( D.IsParallel(gp::DY2d(),Precision::Angular())) { // Iso U.
if ( D.IsOpposite(gp::DY2d(),Precision::Angular()))
Circle->Reverse();
TheBuilder.UpdateEdge(Edge, Circle, Loc, Tol);
- IsComputed = Standard_True;
}
else if ( STy == GeomAbs_Cylinder) {
gp_Cylinder Cyl = S.Cylinder();
if ( D.IsOpposite(gp::DY2d(),Precision::Angular()))
Line->Reverse();
TheBuilder.UpdateEdge(Edge, Line, Loc, Tol);
- IsComputed = Standard_True;
}
else if ( STy == GeomAbs_Cone) {
gp_Cone Cone = S.Cone();
if ( D.IsOpposite(gp::DY2d(),Precision::Angular()))
Line->Reverse();
TheBuilder.UpdateEdge(Edge, Line, Loc, Tol);
- IsComputed = Standard_True;
}
else if ( STy == GeomAbs_Torus) {
}
else { // Case Plane
Handle(Geom_Curve) C3d = GeomAPI::To3d(Curve,S.Plane());
TheBuilder.UpdateEdge(Edge, C3d, Loc, Tol);
- IsComputed = Standard_True;
}
}
//purpose : Only the faces connected with caps are given
//=======================================================================
-static void Touched(const BRepOffset_Analyse& Analyse,
- const TopTools_MapOfShape& StopFaces,
- const TopoDS_Shape& Shape,
- TopTools_MapOfShape& TouchedByCork)
+static void Touched(const BRepOffset_Analyse&,
+ const TopTools_MapOfShape&,
+ const TopoDS_Shape&,
+ TopTools_MapOfShape&)
{
// currently nothing is done !!
- if ( Standard_True) {
+ /*if ( Standard_True) {
return;
}
else {
for ( ; exp.More(); exp.Next()) {
const TopTools_ListOfShape& L = Analyse.Ancestors(exp.Current());
if (StopFaces.Contains(L.First()))
- TouchedByCork.Add(L.Last());
+ TouchedByCork.Add(L.Last());
else if (StopFaces.Contains(L.Last()))
- TouchedByCork.Add(L.First());
+ TouchedByCork.Add(L.First());
}
- }
+ }*/
+ return;
}
//=======================================================================
// Iteration on the edges lines of center
// and their valid valid part is taken after cut and tube construction.
// --------------------------------------------------------------------
- BRepOffset_Type OT = BRepOffset_Concave;
- if (myRadius < 0.) OT = BRepOffset_Convex;
//TopTools_MapIteratorOfMapOfShape ic(myEdges);
Standard_Integer i;