Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-01 09:01:20

0001 // Created on: 1999-03-05
0002 // Created by: Fabrice SERVANT
0003 // Copyright (c) 1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IntPolyh_Edge_HeaderFile
0018 #define _IntPolyh_Edge_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 //! The class represents the edge built between the two IntPolyh points.
0025 //! It is linked to two IntPolyh triangles.
0026 class IntPolyh_Edge
0027 {
0028 public:
0029   DEFINE_STANDARD_ALLOC
0030 
0031   //! Constructor
0032   IntPolyh_Edge()
0033       : myPoint1(-1),
0034         myPoint2(-1),
0035         myTriangle1(-1),
0036         myTriangle2(-1)
0037   {
0038   }
0039 
0040   //! Constructor
0041   IntPolyh_Edge(const int thePoint1,
0042                 const int thePoint2,
0043                 const int theTriangle1,
0044                 const int theTriangle2)
0045       : myPoint1(thePoint1),
0046         myPoint2(thePoint2),
0047         myTriangle1(theTriangle1),
0048         myTriangle2(theTriangle2)
0049   {
0050   }
0051 
0052   //! Returns the first point
0053   int FirstPoint() const { return myPoint1; }
0054 
0055   //! Returns the second point
0056   int SecondPoint() const { return myPoint2; }
0057 
0058   //! Returns the first triangle
0059   int FirstTriangle() const { return myTriangle1; }
0060 
0061   //! Returns the second triangle
0062   int SecondTriangle() const { return myTriangle2; }
0063 
0064   //! Sets the first point
0065   void SetFirstPoint(const int thePoint) { myPoint1 = thePoint; }
0066 
0067   //! Sets the second point
0068   void SetSecondPoint(const int thePoint) { myPoint2 = thePoint; }
0069 
0070   //! Sets the first triangle
0071   void SetFirstTriangle(const int theTriangle) { myTriangle1 = theTriangle; }
0072 
0073   //! Sets the second triangle
0074   void SetSecondTriangle(const int theTriangle) { myTriangle2 = theTriangle; }
0075 
0076   Standard_EXPORT void Dump(const int v) const;
0077 
0078 private:
0079   int myPoint1;
0080   int myPoint2;
0081   int myTriangle1;
0082   int myTriangle2;
0083 };
0084 
0085 #endif // _IntPolyh_Edge_HeaderFile