26 #include "../GeomObj.h" 28 #include "../lists/PolyPos.h" 52 virtual GeomObj *getCopy(
void)
const=0;
54 virtual GEOM_FT
GetMax(
unsigned short int i)
const= 0;
56 virtual GEOM_FT
GetMin(
unsigned short int i)
const= 0;
57 GEOM_FT GetXMax(
void)
const {
return GetMax(1); }
58 GEOM_FT GetYMax(
void)
const {
return GetMax(2); }
59 GEOM_FT GetZMax(
void)
const {
return GetMax(3); }
60 GEOM_FT GetXMin(
void)
const {
return GetMin(1); }
61 GEOM_FT GetYMin(
void)
const {
return GetMin(2); }
62 GEOM_FT GetZMin(
void)
const {
return GetMin(3); }
63 virtual void XProjection(
void) {}
64 virtual void YProjection(
void) {}
65 virtual void ZProjection(
void) {}
68 Pos3d getPMax(
void)
const;
69 Pos3d getPMin(
void)
const;
71 virtual bool In(
const Pos3d &p,
const double &tol= 0.0)
const;
72 virtual bool Out(
const Pos3d &p,
const double &tol= 0.0)
const;
77 virtual Pos3d getCenterOfMass(
void)
const= 0;
81 virtual GEOM_FT
getArea(
void)
const= 0;
84 virtual GEOM_FT Ix(
void)
const= 0;
85 virtual GEOM_FT Iy(
void)
const= 0;
86 virtual GEOM_FT Iz(
void)
const= 0;
90 inline virtual GEOM_FT Pxy(
void)
const 91 {
return Ix()+Iy()-Iz(); }
94 inline virtual GEOM_FT Pxz(
void)
const 95 {
return Ix()+Iz()-Iy(); }
98 inline virtual GEOM_FT Pyz(
void)
const 99 {
return Iy()+Iz()-Ix(); }
100 inline GEOM_FT
I(
const unsigned short int &i,
101 const unsigned short int &j)
const;
103 virtual inline GEOM_FT IArea(
void)
const 106 GEOM_FT
I(
const Line3d &r)
const;
107 GEOM_FT
I(
const unsigned short int i,
108 const unsigned short int j,
109 const Pos3d &o)
const;
110 GEOM_FT
IO(
const Pos3d &o)
const;
virtual GEOM_FT getVolume(void) const =0
Return the object volume.
Base class for position lists.
Definition: PolyPos.h:35
virtual bool Out(const Pos3d &p, const double &tol=0.0) const
Return true if the point lies outside the object.
Definition: GeomObj3d.cc:94
virtual GEOM_FT getLength(void) const =0
Return the object length.
virtual GEOM_FT getArea(void) const =0
Return the object area.
virtual GEOM_FT GetMin(unsigned short int i) const =0
Return the minimum value of the i-th coordinate.
GEOM_FT IO(const Pos3d &o) const
Return the polar moment of inertia with respect to the point o.
Definition: GeomObj3d.cc:176
"boundary" en tres dimensiones.
Definition: BND3d.h:34
virtual Pos3d Projection(const Pos3d &) const
Return the orthogonal projection onto the line.
Definition: GeomObj3d.cc:52
virtual bool In(const Pos3d &p, const double &tol=0.0) const
Return true if point lies inside the object.
Definition: GeomObj3d.cc:86
Posición en tres dimensiones.
Definition: Pos3d.h:44
Line in a three-dimensional space.
Definition: Line3d.h:62
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
virtual GEOM_FT GetMax(unsigned short int i) const =0
Return the maximum value of the i-th coordinate.
The points of the half space are those that line at the back of the plane, this being understood as t...
Definition: HalfSpace3d.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
virtual GEOM_FT getCenterOfMassFactor(void) const
Return the factor used for the computation of the center of mass (1.0 by default).
Definition: GeomObj3d.h:75
Vector en tres dimensiones.
Definition: Vector3d.h:39
Three-dimensional reference system defined in a three-dimensional space.
Definition: Ref3d3d.h:39
Clase base para los objetos en tres dimensiones.
Definition: GeomObj3d.h:43