Commit | Line | Data |
---|---|---|
0d88155b O |
1 | // File: BRepMesh_Edge.cxx |
2 | // Created: Thu Sep 23 13:39:58 1993 | |
3 | // Author: Didier PIFFAULT | |
4 | // <dpf@zerox> | |
5 | ||
7fd59977 | 6 | #include <BRepMesh_Edge.ixx> |
0d88155b | 7 | |
7fd59977 | 8 | BRepMesh_Edge::BRepMesh_Edge(const Standard_Integer vDebut, |
0d88155b O |
9 | const Standard_Integer vFin, |
10 | const BRepMesh_DegreeOfFreedom canMove) | |
11 | : myFirstNode(vDebut), myLastNode(vFin), myMovability(canMove) | |
7fd59977 | 12 | {} |
13 | ||
0d88155b | 14 | void BRepMesh_Edge::SetMovability(const BRepMesh_DegreeOfFreedom Move) |
7fd59977 | 15 | { |
16 | myMovability =Move; | |
17 | } | |
18 | ||
19 | Standard_Integer BRepMesh_Edge::HashCode(const Standard_Integer Upper)const | |
20 | { | |
21 | return ::HashCode(myFirstNode+myLastNode, Upper); | |
22 | } | |
23 | ||
24 | Standard_Boolean BRepMesh_Edge::IsEqual(const BRepMesh_Edge& Other)const | |
25 | { | |
0d88155b | 26 | if (myMovability==BRepMesh_Deleted || Other.myMovability==BRepMesh_Deleted) |
7fd59977 | 27 | return Standard_False; |
28 | return (myFirstNode==Other.myFirstNode && myLastNode==Other.myLastNode) || | |
29 | (myFirstNode==Other.myLastNode && myLastNode==Other.myFirstNode); | |
30 | } | |
31 | ||
32 | ||
33 | Standard_Boolean BRepMesh_Edge::SameOrientation | |
0d88155b | 34 | (const BRepMesh_Edge& Other)const |
7fd59977 | 35 | { |
36 | return (myFirstNode==Other.myFirstNode && myLastNode==Other.myLastNode); | |
37 | } |