summaryrefslogtreecommitdiff
path: root/src/StlMesh/StlMesh_MeshTriangle.cxx
blob: 8642be844e98326e01b4babb3da8259056a4bc65 (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
95
96
97
98
99
100
101
102
//=======================================================================
// File:	StlMesh_MeshTriangle.cxx
// Created:	Mon Sep 25 11:24:02 1995
// Author:	Philippe GIRODENGO
// Copyright:    Matra Datavision	

#include <StlMesh_MeshTriangle.ixx>
#include <Precision.hxx>
#include <gp_XYZ.hxx>

//=======================================================================
//function : StlMesh_MeshTriangle
//design   : 
//warning  : 
//=======================================================================

StlMesh_MeshTriangle::StlMesh_MeshTriangle()
     : MyV1 (0), MyV2 (0), MyV3 (0), MyXn (0.0), MyYn (0.0), MyZn (0.0) { }


//=======================================================================
//function : StlMesh_MeshTriangle
//design   : 
//warning  : 
//=======================================================================

     StlMesh_MeshTriangle::StlMesh_MeshTriangle(const Standard_Integer V1, 
						const Standard_Integer V2, 
						const Standard_Integer V3, 
						const Standard_Real Xn, 
						const Standard_Real Yn, 
						const Standard_Real Zn)
: MyV1 (V1), MyV2 (V2), MyV3 (V3), MyXn (Xn), MyYn (Yn), MyZn (Zn) { }


//=======================================================================
//function : GetVertexAndOrientation
//design   : 
//warning  : 
//=======================================================================

void StlMesh_MeshTriangle::GetVertexAndOrientation(Standard_Integer& V1, 
						   Standard_Integer& V2, 
						   Standard_Integer& V3, 
						   Standard_Real& Xn, 
						   Standard_Real& Yn, 
						   Standard_Real& Zn) const 
{
  V1 = MyV1;
  V2 = MyV2;
  V3 = MyV3;
  Xn = MyXn;
  Yn = MyYn;
  Zn = MyZn;
}

//=======================================================================
//function : SetVertexAndOrientation
//design   : 
//warning  : 
//=======================================================================

void StlMesh_MeshTriangle::SetVertexAndOrientation(const Standard_Integer V1, const Standard_Integer V2, 
						   const Standard_Integer V3, const Standard_Real Xn, 
						   const Standard_Real Yn, const Standard_Real Zn)
{
  MyV1 = V1;
  MyV2 = V2;
  MyV3 = V3;
  MyXn = Xn;
  MyYn = Yn;
  MyZn = Zn;
}

//=======================================================================
//function : GetVertex
//design   : 
//warning  : 
//=======================================================================

void StlMesh_MeshTriangle::GetVertex(Standard_Integer& V1, Standard_Integer& V2, Standard_Integer& V3) const 
{
  V1 = MyV1;
  V2 = MyV2;
  V3 = MyV3;
}

//=======================================================================
//function : SetVertex
//design   : 
//warning  : 
//=======================================================================

void StlMesh_MeshTriangle::SetVertex(const Standard_Integer V1, const Standard_Integer V2, const Standard_Integer V3)
{
  MyV1 = V1;
  MyV2 = V2;
  MyV3 = V3;
}