-// File: BRepFeat_MakeLinearForm.cxx
-// Created: Mon Apr 14 13:34:46 1997
-// Author: Olga KOULECHOVA
-// <opt@langdox.paris1.matra-dtv.fr>
-
+// Created on: 1997-04-14
+// Created by: Olga KOULECHOVA
+// Copyright (c) 1997-1999 Matra Datavision
+// Copyright (c) 1999-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 License 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 <BRepFeat_MakeLinearForm.ixx>
#include <BRepFeat.hxx>
#include <LocOpe.hxx>
-#include <LocOpe_Builder.hxx>
#include <LocOpe_LinearForm.hxx>
#include <LocOpe_Gluer.hxx>
#include <LocOpe_FindEdges.hxx>
//#include <DbgTools.hxx>
#ifdef DEB
-Standard_IMPORT Standard_Boolean BRepFeat_GettraceFEAT();
-Standard_IMPORT Standard_Boolean BRepFeat_GettraceFEATRIB();
+extern Standard_Boolean BRepFeat_GettraceFEAT();
+extern Standard_Boolean BRepFeat_GettraceFEATRIB();
#endif
static void MajMap(const TopoDS_Shape&, // base
gp_Vec nulldir(0, 0, 0);
if(!myDir1.IsEqual(nulldir, myTol, myTol)) {
Standard_Real ang = myDir1.Angle(myDir);
- if(ang != PI) {
+ if(ang != M_PI) {
#ifdef DEB
if (trc) cout << " Directions must be opposite" << endl;
#endif
counter1++;
NewListOfEdges.Append(edg);
theEdge = eeee;
-#ifdef DEB
- Standard_Real dist1 =
-#endif
- theLastPnt.Distance(myLastPnt);
if(dist <= myTol)
theFEdge = edg;
TopExp_Explorer Ex;
TopoDS_Edge eb, ec;
gp_Pnt p1, p2;
-#ifndef DEB
Standard_Real t1 = 0., t2 = 0.;
-#else
- Standard_Real t1, t2;
-#endif
Standard_Boolean c1f, c2f, c1l, c2l;
for (Ex.Init(sect.Shape(), TopAbs_EDGE); Ex.More(); Ex.Next()) {
TopoDS_Vertex Vprevious;
gp_Pnt ptprev;
- Standard_Real tvp, dp;
+ Standard_Real dp;
while (!(LastOK && FirstOK)) {
if (v1OK) {
Vprevious=v2;
ptprev=p2;
- tvp=t2;
}
else {
Vprevious=v1;
ptprev=p1;
- tvp=t1;
}
// find edge connected to v1 or v2:
// end by chaining the section
return Standard_False;
}
-// #ifdef DEB
-// Standard_Boolean isnb=
-// #endif
TopTools_ListOfShape thelist1;
-#ifdef DEB
- Standard_Boolean isnb=
-#endif
mySlface.Bind(CurrentFace, thelist1);
mySlface(CurrentFace).Append(edg1);
myListOfEdges.Append(edg1);
for (exp.Init(theB,TopAbs_EDGE); exp.More(); exp.Next()) {
if (!theMap.IsBound(exp.Current())) {
-#ifdef DEB
- const TopoDS_Edge& e =
-#endif
- TopoDS::Edge(exp.Current());
TopTools_ListOfShape thelist2;
theMap.Bind(exp.Current(), thelist2);
theMap(exp.Current()) = theP.Shapes(exp.Current());