xc
GTSFace.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // xc utils library; general purpose classes and functions.
4 //
5 // Copyright (C) Luis C. PĂ©rez Tato
6 //
7 // XC utils is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // This software is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program.
19 // If not, see <http://www.gnu.org/licenses/>.
20 //----------------------------------------------------------------------------
21 //GTSFace.h
22 //C++ wrapper para la clase GtsFace de la biblioteca GTS.
23 
24 #ifndef GTS_FACE_H
25 #define GTS_FACE_H
26 
27 #include "gts.h"
28 
29 class GTSEdge;
30 
31 class GTSFace
32  {
33  GtsFace *fc;
34 
35  bool borrar;
36  void crea(GTSEdge &e1,GTSEdge &e2,GTSEdge &e3);
37  void borra(void);
38  protected:
39  GtsFace const *get_const_ptr(void) const
40  { return fc; }
41  GtsFace *get_ptr(void)
42  { return fc; }
43 
44  public:
45  friend class GTSSurface;
46  friend class GTSSurfaceTraverse;
47 
48  GTSFace(GtsFace *f= nullptr);
49  GTSFace(GTSEdge &e1,GTSEdge &e2,GTSEdge &e3);
50  GTSFace(const GTSFace &);
51  GTSFace &operator=(const GTSFace &);
52  bool Null(void) const;
53  ~GTSFace(void);
54  };
55 
56 
57 #endif
Definition: GTSSurfaceTraverse.h:32
Definition: GTSFace.h:31
Definition: GTSSurface.h:38
Definition: GTSEdge.h:31