23 #ifndef SOLIDEXTRU3D_H 24 #define SOLIDEXTRU3D_H 28 #include "../FT_matrix.h" 29 #include "../pos_vec/Pos3d.h" 55 virtual GeomObj *getCopy(
void)
const 60 scc= scc.offset(offset);
79 GEOM_FT area= 2*scc.getArea();
80 area+= scc.getLength()*
l;
88 {
return scc.getArea() *
l; }
89 inline virtual GEOM_FT Ix(
void)
const 90 {
return scc.Ix()*l + scc.getArea()*l*l*l/12; }
91 inline virtual GEOM_FT Iy(
void)
const 92 {
return scc.Iy()*l + scc.getArea()*l*l*l/12; }
93 inline virtual GEOM_FT Iz(
void)
const 94 {
return (scc.Ix()+scc.Iy())*l; }
119 inline virtual GEOM_FT
GetMax(
unsigned short int i)
const 122 std::cerr <<
"SolidExtru3d::" << __FUNCTION__
123 <<
"not implemented." << std::endl;
127 inline virtual GEOM_FT
GetMin(
unsigned short int i)
const 130 std::cerr <<
"SolidExtru3d::" << __FUNCTION__
131 <<
"not implemented." << std::endl;
134 BND3d Bnd(
void)
const 139 Pos3d getCenterOfMass(
void)
const 140 {
return scc.getCenterOfMass(); }
void self_offset(const GEOM_FT &offset)
offset this object.
Definition: SolidExtru3d.h:58
SolidExtru3d, sólidos de extrusión.
Definition: SolidExtru3d.h:38
virtual GEOM_FT GetMax(unsigned short int i) const
Return the maximum value of the i-th coordinate.
Definition: SolidExtru3d.h:119
EntityWithOwner & operator=(const EntityWithOwner &)
Assignment operator.
Definition: EntityWithOwner.cc:53
Clase base para los sólidos en tres dimensiones.
Definition: Solid3d.h:31
virtual GEOM_FT GetMin(unsigned short int i) const
Return the minimum value of the i-th coordinate.
Definition: SolidExtru3d.h:127
SolidExtru3d< S > offset(const GEOM_FT &offset) const
get an object parallel to this one, at a fixed distance.
Definition: SolidExtru3d.h:64
GEOM_FT getLength(void) const
Return object length.
Definition: SolidExtru3d.h:84
const S & Section(void) const
Return the extruded section.
Definition: SolidExtru3d.h:71
"boundary" en tres dimensiones.
Definition: BND3d.h:34
S & Section(void)
Return the extruded section.
Definition: SolidExtru3d.h:74
S scc
Surface that create the solid.
Definition: SolidExtru3d.h:41
GEOM_FT getArea(void) const
Return the object area.
Definition: SolidExtru3d.h:77
Posición en tres dimensiones.
Definition: Pos3d.h:44
Solid3d(void)
Constructor.
Definition: Solid3d.cc:27
FT_matrix I(void) const
Return the inertia tensor with respect to the center of mass of the object.
Definition: GeomObj3d.cc:157
BND3d Bnd(void) const
Return the boundary of the object.
Definition: GeomObj3d.cc:82
GEOM_FT getVolume(void) const
Return the object volume.
Definition: SolidExtru3d.h:87
GEOM_FT l
Lentgh of the extruded solid (negative if undefined).
Definition: SolidExtru3d.h:42
Clase base para las entidades geométricas.
Definition: GeomObj.h:40
Matrix which components are GEOM_FT numbers.
Definition: FT_matrix.h:40