blob: 57de4ac28c61a05358598075552a64b917fde49a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
// File: TestTopOpe_BOOP.cxx
// Created: Mon Feb 5 17:29:41 1996
// Author: Jea Yves LEBEY
// <jyl@meteox>
#include <TestTopOpe_BOOP.hxx>
#include <TopOpeBRepTool.hxx>
#include <TopOpeBRepDS.hxx>
#include <TopOpeBRep_DSFiller.hxx>
#include <TopOpeBRep_define.hxx>
Standard_Integer TestTopOpe_BOOP::DSF_SetInterTolerances(TopOpeBRep_DSFiller& DSF)
{
if (myVarsTopo.GetForceToli()) {
TopOpeBRep_ShapeIntersector& tobsi = DSF.ChangeShapeIntersector();
Standard_Real tola,tolt; myVarsTopo.GetToli(tola,tolt);
TopOpeBRep_FacesIntersector& tobfi = tobsi.ChangeFacesIntersector();
tobfi.ForceTolerances(tola,tolt);
TopOpeBRep_EdgesIntersector& tobei = tobsi.ChangeEdgesIntersector();
tobei.ForceTolerances(tola,tolt);
}
return 0;
}
Standard_Integer TestTopOpe_BOOP::DSF_Insert(TopOpeBRep_DSFiller& DSF)
{
// Standard_Integer err = 0;
DSF_Insert_InsertIntersection(DSF);
DSF_Insert_Complete_CompleteDS(DSF);
DSF_Insert_Complete_Filter(DSF);
DSF_Insert_Complete_Reducer(DSF);
DSF_Insert_Complete_RemoveUnsharedGeometry(DSF);
DSF_Insert_Complete_Checker(DSF);
mylastPREP = 190;
return 0;
}
Standard_Integer TestTopOpe_BOOP::DSF_Insert_InsertIntersection(TopOpeBRep_DSFiller& DSF)
{
// Standard_Integer err = 0;
DSF_SetInterTolerances(DSF);
DSF.InsertIntersection(myS1,myS2,myHDS);
mylastPREP = 110;
return 0;
}
Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_GapFiller(TopOpeBRep_DSFiller& DSF)
{
// Standard_Integer err = 0;
DSF.GapFiller(myHDS);
mylastPREP = 115;
return 0;
}
Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_CompleteDS(TopOpeBRep_DSFiller& DSF)
{
// Standard_Integer err = 0;
DSF.CompleteDS(myHDS);
mylastPREP = 120;
return 0;
}
Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_Filter(TopOpeBRep_DSFiller& DSF)
{
// Standard_Integer err = 0;
DSF.Filter(myHDS);
mylastPREP = 130;
return 0;
}
Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_Reducer(TopOpeBRep_DSFiller& DSF)
{
// Standard_Integer err = 0;
DSF.Reducer(myHDS);
mylastPREP = 140;
return 0;
}
Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_RemoveUnsharedGeometry(TopOpeBRep_DSFiller& DSF)
{
// Standard_Integer err = 0;
DSF.RemoveUnsharedGeometry(myHDS);
mylastPREP = 150;
return 0;
}
Standard_Integer TestTopOpe_BOOP::DSF_Insert_Complete_Checker(TopOpeBRep_DSFiller& DSF)
{
// Standard_Integer err = 0;
DSF.Checker(myHDS);
mylastPREP = 160;
return 0;
}
|