summaryrefslogtreecommitdiff
path: root/src/TopOpeBRepDS/TopOpeBRepDS_CurvePointInterference.cxx
blob: 7e5025c4d744abf0580c88a119a1f5cc277bb401 (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
// File:	TopOpeBRepDS_CurvePointInterference.cxx
// Created:	Wed Jun 23 19:11:24 1993
// Author:	Jean Yves LEBEY
//		<jyl@zerox>


#include <TopOpeBRepDS_CurvePointInterference.ixx>

//=======================================================================
//function : TopOpeBRepDS_CurvePointInterference
//purpose  : 
//=======================================================================

TopOpeBRepDS_CurvePointInterference::TopOpeBRepDS_CurvePointInterference
  (const TopOpeBRepDS_Transition& T, 
   const TopOpeBRepDS_Kind ST,
   const Standard_Integer S, 
   const TopOpeBRepDS_Kind GT,
   const Standard_Integer G, 
   const Standard_Real P) :
  TopOpeBRepDS_Interference(T,ST,S,GT,G),
  myParam(P)
{
}


//=======================================================================
//function : Parameter
//purpose  : 
//=======================================================================

Standard_Real  TopOpeBRepDS_CurvePointInterference::Parameter()const 
{
  return myParam;
}


//=======================================================================
//function : Parameter
//purpose  : 
//=======================================================================

void  TopOpeBRepDS_CurvePointInterference::Parameter(const Standard_Real P)
{
  myParam = P;
}


//=======================================================================
//function : Dump
//purpose  : 
//=======================================================================

Standard_OStream& TopOpeBRepDS_CurvePointInterference::Dump
  (Standard_OStream& OS) const
{
#ifdef DEB
  TopOpeBRepDS_Kind supporttype = SupportType();
  if      (supporttype == TopOpeBRepDS_EDGE)  OS<<"EPI";
  else if (supporttype == TopOpeBRepDS_CURVE) OS<<"CPI";
  else if (supporttype == TopOpeBRepDS_FACE)  OS<<"ECPI";
  else                                        OS<<"???";
  OS<<" "; TopOpeBRepDS_Interference::Dump(OS);
  OS<<" "<<myParam; 
#endif

  return OS;
}