xc
Cylinder.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 //Cylinder.h
22 //Sólido de extrusión generado por un polígono.
23 
24 #ifndef SOLIDEXTRUPLGNO3D_H
25 #define SOLIDEXTRUPLGNO3D_H
26 
27 #include "SolidExtru3d.h"
28 #include "utility/geom/d2/Circle3d.h"
29 
30 
32 //
34 class Cylinder : public SolidExtru3d<Circle3d>
35  {
36  public:
38  public:
39  Cylinder(void);
40  Cylinder(const Circle3d &secc,const GEOM_FT &lng);
41 
42  virtual GeomObj *getCopy(void) const;
43 
44  BND3d Bnd(void) const;
45  FT_matrix I(void) const;
46  Pos3d getCenterOfMass(void) const;
47  };
48 
49 
50 
51 
52 
53 
54 #endif
SolidExtru3d, sólidos de extrusión.
Definition: SolidExtru3d.h:38
Cylinder.
Definition: Cylinder.h:34
"boundary" en tres dimensiones.
Definition: BND3d.h:34
Cylinder(void)
Constructor.
Definition: Cylinder.cc:26
Círculo en tres dimensiones.
Definition: Circle3d.h:35
Posición en tres dimensiones.
Definition: Pos3d.h:44
BND3d Bnd(void) const
la extension del objeto.
Definition: Cylinder.cc:37
Clase base para las entidades geométricas.
Definition: GeomObj.h:40
virtual GeomObj * getCopy(void) const
Constructor virtual.
Definition: Cylinder.cc:33
Matrix which components are GEOM_FT numbers.
Definition: FT_matrix.h:40