23 #ifndef POLYGON_WITH_HOLES_2D_H 24 #define POLYGON_WITH_HOLES_2D_H 26 #include "utility/geom/d2/Surface2d.h" 40 CGPolygonWithHoles_2 cgpol;
42 typedef CGPolygonWithHoles_2::Hole_const_iterator Hole_const_iterator;
48 bool In(
const Pos2d &p,
const double &tol)
const;
50 inline GEOM_FT getPerimeter(
void)
const 53 GEOM_FT
GetMax(
unsigned short int i)
const;
54 GEOM_FT
GetMin(
unsigned short int i)
const;
56 GEOM_FT
Ix(
void)
const;
57 GEOM_FT
Iy(
void)
const;
58 GEOM_FT
Pxy(
void)
const;
66 void Print(std::ostream &)
const;
Polígono que puede tener huecos.
Definition: PolygonWithHoles2d.h:38
virtual GeomObj * getCopy(void) const
Constructor virtual.
Definition: PolygonWithHoles2d.cc:38
GEOM_FT getArea(void) const
Return the object area.
Definition: PolygonWithHoles2d.cc:62
GEOM_FT Pxy(void) const
Calcula el product of inertia with respect to the axis parallel to the x and y that passes through th...
Definition: PolygonWithHoles2d.cc:226
bool In(const Pos2d &p, const double &tol) const
Return true if the point is inside the object.
Definition: PolygonWithHoles2d.cc:124
Posición en dos dimensiones.
Definition: Pos2d.h:41
Line in a two-dimensional space.
Definition: Line2d.h:61
void add_hole(const Polygon2d &)
Hace un agujero en este polígono con la forma del que se le pasa como parámetro.
Definition: PolygonWithHoles2d.cc:253
PolygonWithHoles2d getTransformed(const Trf2d &)
Applies the transformation being passed as parameter.
Definition: PolygonWithHoles2d.cc:257
GEOM_FT Iy(void) const
Calcula el moment of inertia with respect to an axis parallel to the y axis que pasa por el polygon c...
Definition: PolygonWithHoles2d.cc:202
Base class for two-dimensional transformations.
Definition: Trf2d.h:40
Pos2d getCenterOfMass(void) const
Return the center of mass.
Definition: PolygonWithHoles2d.cc:151
Base class for surfaces in a two-dimensional space.
Definition: Surface2d.h:33
Polígono en dos dimensiones.
Definition: Polygon2d.h:38
Segment in a two-dimensional space.
Definition: Segment2d.h:38
GEOM_FT GetMax(unsigned short int i) const
Return the maximum value of the i-th coordinate.
Definition: PolygonWithHoles2d.cc:82
GEOM_FT GetMin(unsigned short int i) const
Return the minimum value of the i-th coordinate.
Definition: PolygonWithHoles2d.cc:103
void Transform(const Trf2d &)
Applies the transformation being passed as parameter.
Definition: PolygonWithHoles2d.cc:280
Polyline in a two-dimensional space.
Definition: Polyline2d.h:41
Clase base para las entidades geométricas.
Definition: GeomObj.h:40
GEOM_FT getLength(void) const
Return object length.
Definition: PolygonWithHoles2d.cc:45
Ray in a two-dimensional space.
Definition: Ray2d.h:35
PolygonWithHoles2d(void)
Default constructor.
Definition: PolygonWithHoles2d.cc:30
GEOM_FT Ix(void) const
Compute moment of inertia with respect to an axis parallel to the x axis that passes through thecente...
Definition: PolygonWithHoles2d.cc:178