Bayeux  3.4.1
Core Foundation library for SuperNEMO
cone.h
Go to the documentation of this file.
1 /* Author(s) : Francois Mauger <mauger@lpccaen.in2p3.fr>
3  * Creation date: 2013-10-11
4  * Last modified: 2015-03-12
5  *
6  * License:
7  *
8  * Description:
9  *
10  * Cone utilities and shapes
11  *
12  */
13 
14 #ifndef GEOMTOOLS_CONE_H
15 #define GEOMTOOLS_CONE_H 1
16 
17 // This project:
18 #include <geomtools/i_shape_2d.h>
19 #include <geomtools/i_shape_3d.h>
20 #include <geomtools/i_stackable.h>
22 
23 namespace geomtools {
24 
25  // Class forward declarations:
26  class disk;
27  class quadrangle;
28 
30  class cone {
31  public:
32 
34  static double compute_frustrum_lateral_surface(double z1_, double z2_,
35  double r1_, double r2_);
36 
38  static double compute_frustrum_volume(double z1_, double z2_,
39  double r1_, double r2_);
40 
41 
43  virtual void generate_wires_self(wires_type & wires_,
44  uint32_t options_ = 0) const;
45 
46  };
47 
48 } // end of namespace geomtools
49 
50 #endif // GEOMTOOLS_CONE_H
51 
52 /*
53 ** Local Variables: --
54 ** mode: c++ --
55 ** c-file-style: "gnu" --
56 ** tab-width: 2 --
57 ** End: --
58 */
static double compute_frustrum_lateral_surface(double z1_, double z2_, double r1_, double r2_)
Compute the lateral surface of a conical frustrum.
virtual void generate_wires_self(wires_type &wires_, uint32_t options_=0) const
Generate a sequence of polylines for wires 3D rendering.
Cone utilities.
Definition: cone.h:30
std::list< polyline_type > wires_type
Alias for a list of 3D-polylines.
Definition: utils.h:61
static double compute_frustrum_volume(double z1_, double z2_, double r1_, double r2_)
Compute the volume of a conical frustrum.
Top-level namespace of the Bayeux/geomtools module library.
Definition: electromagnetic_field_manager.h:39