Bayeux  3.4.1
Core Foundation library for SuperNEMO
i_polygon.h
Go to the documentation of this file.
1 /* Author(s) : Francois Mauger <mauger@lpccaen.in2p3.fr>
3  * Creation date: 2015-03-22
4  * Last modified: 2015-03-22
5  *
6  * License:
7  *
8  * Description:
9  *
10  * Polygon interface
11  *
12  * History:
13  *
14  */
15 
16 #ifndef GEOMTOOLS_I_POLYGON_H
17 #define GEOMTOOLS_I_POLYGON_H 1
18 
19 // Standard library:
20 #include <vector>
21 
22 // This project:
23 #include <geomtools/utils.h>
24 
25 namespace geomtools {
26 
28  class i_polygon
29  {
30  public:
31 
33  virtual unsigned int compute_vertexes(vertex_col_type & vertexes_) const = 0;
34 
35  };
36 
37 } // end of namespace geomtools
38 
39 #endif // GEOMTOOLS_I_POLYGON_H
40 
41 /*
42 ** Local Variables: --
43 ** mode: c++ --
44 ** c-file-style: "gnu" --
45 ** tab-width: 2 --
46 ** End: --
47 */
virtual unsigned int compute_vertexes(vertex_col_type &vertexes_) const =0
Build an ordered collection of vertexes.
Polygon 2D shape.
Definition: i_polygon.h:28
std::vector< vector_3d > vertex_col_type
Aliases for an ordered collection of 3D vertice.
Definition: utils.h:58
Top-level namespace of the Bayeux/geomtools module library.
Definition: electromagnetic_field_manager.h:39