OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::Polygon Class Reference

Class representing 2D polygon. More...

#include <geotoolbox.h>

Classes

class  PolygonEdgeIterator
 
class  PolygonVertexIterator
 

Public Member Functions

 Polygon ()
 
void addVertex (Vertex v)
 
double computeVolume () const
 
int testPoint (double x, double y) const
 
double pointDistance (double x, double y) const
 
void clear ()
 
GraphicObj * draw (oofegGraphicContext &, bool filled, int layer=OOFEG_DEBUG_LAYER)
 

Private Attributes

std::list< Vertexvertices
 

Detailed Description

Class representing 2D polygon.

Polygon is represented as a sequence of vertices. THe services for adding vertices, computing volume, testing if point is inside polygon are provided. Also iterators over polygon vertices and edges are provided. This class is a part of geometry toolbox.

Definition at line 91 of file geotoolbox.h.

Constructor & Destructor Documentation

oofem::Polygon::Polygon ( )
inline

Definition at line 95 of file geotoolbox.h.

Member Function Documentation

double oofem::Polygon::pointDistance ( double  x,
double  y 
) const
int oofem::Polygon::testPoint ( double  x,
double  y 
) const

Member Data Documentation


The documentation for this class was generated from the following files:

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:39 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011