1 // Created on: 1996-02-05
2 // Created by: Jea Yves LEBEY
3 // Copyright (c) 1996-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
6 // The content of this file is subject to the Open CASCADE Technology Public
7 // License Version 6.5 (the "License"). You may not use the content of this file
8 // except in compliance with the License. Please obtain a copy of the License
9 // at http://www.opencascade.org and read it completely before using this file.
11 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 // The Original Code and all software distributed under the License is
15 // distributed on an "AS IS" basis, without warranty of any kind, and the
16 // Initial Developer hereby disclaims all such warranties, including without
17 // limitation, any warranties of merchantability, fitness for a particular
18 // purpose or non-infringement. Please see the License for the specific terms
19 // and conditions governing the rights and limitations under the License.
22 #include <TestTopOpe_BOOP.hxx>
24 #include <TopOpeBRepTool.hxx>
25 #include <TopOpeBRepDS.hxx>
26 #include <TopOpeBRep_DSFiller.hxx>
27 #include <TopOpeBRep_define.hxx>
29 Standard_Integer TestTopOpe_BOOP::DSF_SetInterTolerances(TopOpeBRep_DSFiller& DSF)
31 if (myVarsTopo.GetForceToli()) {
32 TopOpeBRep_ShapeIntersector& tobsi = DSF.ChangeShapeIntersector();
33 Standard_Real tola,tolt; myVarsTopo.GetToli(tola,tolt);
34 TopOpeBRep_FacesIntersector& tobfi = tobsi.ChangeFacesIntersector();
35 tobfi.ForceTolerances(tola,tolt);
36 TopOpeBRep_EdgesIntersector& tobei = tobsi.ChangeEdgesIntersector();
37 tobei.ForceTolerances(tola,tolt);
42 Standard_Integer TestTopOpe_BOOP::DSF_Insert(TopOpeBRep_DSFiller& DSF)
44 // Standard_Integer err = 0;
45 DSF_Insert_InsertIntersection(DSF);
46 DSF_Insert_Complete_CompleteDS(DSF);
47 DSF_Insert_Complete_Filter(DSF);
48 DSF_Insert_Complete_Reducer(DSF);
49 DSF_Insert_Complete_RemoveUnsharedGeometry(DSF);
50 DSF_Insert_Complete_Checker(DSF);
55 Standard_Integer TestTopOpe_BOOP::DSF_Insert_InsertIntersection(TopOpeBRep_DSFiller& DSF)
57 // Standard_Integer err = 0;
58 DSF_SetInterTolerances(DSF);
59 DSF.InsertIntersection(myS1,myS2,myHDS);
64 Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_GapFiller(TopOpeBRep_DSFiller& DSF)
66 // Standard_Integer err = 0;
72 Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_CompleteDS(TopOpeBRep_DSFiller& DSF)
74 // Standard_Integer err = 0;
75 DSF.CompleteDS(myHDS);
80 Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_Filter(TopOpeBRep_DSFiller& DSF)
82 // Standard_Integer err = 0;
88 Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_Reducer(TopOpeBRep_DSFiller& DSF)
90 // Standard_Integer err = 0;
96 Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_RemoveUnsharedGeometry(TopOpeBRep_DSFiller& DSF)
98 // Standard_Integer err = 0;
99 DSF.RemoveUnsharedGeometry(myHDS);
104 Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_Checker(TopOpeBRep_DSFiller& DSF)
106 // Standard_Integer err = 0;