0024510: Remove unused local variables
[occt.git] / src / TestTopOpe / TestTopOpe_DSF.cxx
CommitLineData
b311480e 1// Created on: 1996-02-05
2// Created by: Jea Yves LEBEY
3// Copyright (c) 1996-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
973c2be1 8// This library is free software; you can redistribute it and / or modify it
9// under the terms of the GNU Lesser General Public version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
17#include <TestTopOpe_BOOP.hxx>
18
19#include <TopOpeBRepTool.hxx>
20#include <TopOpeBRepDS.hxx>
21#include <TopOpeBRep_DSFiller.hxx>
22#include <TopOpeBRep_define.hxx>
23
24Standard_Integer TestTopOpe_BOOP::DSF_SetInterTolerances(TopOpeBRep_DSFiller& DSF)
25{
26 if (myVarsTopo.GetForceToli()) {
27 TopOpeBRep_ShapeIntersector& tobsi = DSF.ChangeShapeIntersector();
28 Standard_Real tola,tolt; myVarsTopo.GetToli(tola,tolt);
29 TopOpeBRep_FacesIntersector& tobfi = tobsi.ChangeFacesIntersector();
30 tobfi.ForceTolerances(tola,tolt);
31 TopOpeBRep_EdgesIntersector& tobei = tobsi.ChangeEdgesIntersector();
32 tobei.ForceTolerances(tola,tolt);
33 }
34 return 0;
35}
36
37Standard_Integer TestTopOpe_BOOP::DSF_Insert(TopOpeBRep_DSFiller& DSF)
38{
39// Standard_Integer err = 0;
40 DSF_Insert_InsertIntersection(DSF);
41 DSF_Insert_Complete_CompleteDS(DSF);
42 DSF_Insert_Complete_Filter(DSF);
43 DSF_Insert_Complete_Reducer(DSF);
44 DSF_Insert_Complete_RemoveUnsharedGeometry(DSF);
45 DSF_Insert_Complete_Checker(DSF);
46 mylastPREP = 190;
47 return 0;
48}
49
50Standard_Integer TestTopOpe_BOOP::DSF_Insert_InsertIntersection(TopOpeBRep_DSFiller& DSF)
51{
52// Standard_Integer err = 0;
53 DSF_SetInterTolerances(DSF);
54 DSF.InsertIntersection(myS1,myS2,myHDS);
55 mylastPREP = 110;
56 return 0;
57}
58
59Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_GapFiller(TopOpeBRep_DSFiller& DSF)
60{
61// Standard_Integer err = 0;
62 DSF.GapFiller(myHDS);
63 mylastPREP = 115;
64 return 0;
65}
66
67Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_CompleteDS(TopOpeBRep_DSFiller& DSF)
68{
69// Standard_Integer err = 0;
70 DSF.CompleteDS(myHDS);
71 mylastPREP = 120;
72 return 0;
73}
74
75Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_Filter(TopOpeBRep_DSFiller& DSF)
76{
77// Standard_Integer err = 0;
78 DSF.Filter(myHDS);
79 mylastPREP = 130;
80 return 0;
81}
82
83Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_Reducer(TopOpeBRep_DSFiller& DSF)
84{
85// Standard_Integer err = 0;
86 DSF.Reducer(myHDS);
87 mylastPREP = 140;
88 return 0;
89}
90
91Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_RemoveUnsharedGeometry(TopOpeBRep_DSFiller& DSF)
92{
93// Standard_Integer err = 0;
94 DSF.RemoveUnsharedGeometry(myHDS);
95 mylastPREP = 150;
96 return 0;
97}
98
99Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_Checker(TopOpeBRep_DSFiller& DSF)
100{
101// Standard_Integer err = 0;
102 DSF.Checker(myHDS);
103 mylastPREP = 160;
104 return 0;
105}