mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-30 12:14:08 +03:00
38 lines
1.2 KiB
C++
Executable File
38 lines
1.2 KiB
C++
Executable File
// File: BRepMesh_Edge.cxx
|
|
// Created: Thu Sep 23 13:39:58 1993
|
|
// Author: Didier PIFFAULT
|
|
// <dpf@zerox>
|
|
|
|
#include <BRepMesh_Edge.ixx>
|
|
|
|
BRepMesh_Edge::BRepMesh_Edge(const Standard_Integer vDebut,
|
|
const Standard_Integer vFin,
|
|
const BRepMesh_DegreeOfFreedom canMove)
|
|
: myFirstNode(vDebut), myLastNode(vFin), myMovability(canMove)
|
|
{}
|
|
|
|
void BRepMesh_Edge::SetMovability(const BRepMesh_DegreeOfFreedom Move)
|
|
{
|
|
myMovability =Move;
|
|
}
|
|
|
|
Standard_Integer BRepMesh_Edge::HashCode(const Standard_Integer Upper)const
|
|
{
|
|
return ::HashCode(myFirstNode+myLastNode, Upper);
|
|
}
|
|
|
|
Standard_Boolean BRepMesh_Edge::IsEqual(const BRepMesh_Edge& Other)const
|
|
{
|
|
if (myMovability==BRepMesh_Deleted || Other.myMovability==BRepMesh_Deleted)
|
|
return Standard_False;
|
|
return (myFirstNode==Other.myFirstNode && myLastNode==Other.myLastNode) ||
|
|
(myFirstNode==Other.myLastNode && myLastNode==Other.myFirstNode);
|
|
}
|
|
|
|
|
|
Standard_Boolean BRepMesh_Edge::SameOrientation
|
|
(const BRepMesh_Edge& Other)const
|
|
{
|
|
return (myFirstNode==Other.myFirstNode && myLastNode==Other.myLastNode);
|
|
}
|