Polygon
#
A polygon is defined by its ordered list of vertices.
To do so, use the parameter _vertices
.
_nnodes
can take one single value, an explicit list of values or a Numbers
object and _hsteps
can take one real value,
an explicit list of real values or a Reals
object. The vector sizes are the number of vertices (same as the number of edges for a polygon).
If required, give the names of main domain and side domains as explained in Geometry definition:
std::vector<Point> p(5);
p[0]=Point(0.,0.);
p[1]=Point(8.,0.);
p[2]=Point(9.,4.);
p[3]=Point(5.,2.);
p[4]=Point(1.,4.);
Polygon poly1(_vertices=p, _nnodes=Numbers(15, 10, 8, 8, 10), _domain_name="Omega", _side_names="Sigma");
Let’s summarize information about geometrical keys on polygons:
key(s) |
authorized types |
examples |
---|---|---|
|
vector of |
|
Hint
Parametrization of polygon is a piecewise parametrization built from a triangle partitionning (splitInTriangles()
using an ‘earcut’ algorithm).