A polygon consists of a sequence of connected line segments. To create a polygon, right-click a 2D or 3D Geometry node and select
Polygon (
![](images/comsol_ref_geometry.21.046.01.png)
) from the
More Primitives submenu. Alternatively, in the
Geometry toolbar, from the
Primitives group in 2D or the
More Primitives (
![](images/comsol_ref_geometry.21.046.02.png)
) menu in 3D, select
Polygon. It is also possible to create a polygon interactively by clicking the
Draw Polygon button in the
Sketch toolbar in 2D.
From the Type list, select
Solid,
Closed curve, or
Open curve to specify if the polygon is a solid object (only available in 2D) or a closed or open curve object. If you choose
Solid or
Closed curve, the program adds a line segment if needed to close the polygon.
From the Data source list, you can choose from three different data sources for the coordinates:
The coordinate system in which the polygon coordinates above are interpreted (in 3D geometries only). From the Work plane list, select
xy-plane (the default, for a standard global Cartesian coordinate system) or select any work plane defined above this node in the geometry sequence. If you choose a work plane, the work plane and its coordinate system appear in the Graphics window, using an extra coordinate triad with the directions
xw,
yw, and
zw (which are then used to specify the position).
Select the Resulting objects selection check box to create predefined selections (for all levels — objects, domains, boundaries, edges, and points — that are applicable) in subsequent nodes in the geometry sequence. To also make all or one of the types of resulting entities (domains, boundaries, and points) that the polygon consists of available as selections in all applicable selection lists (in physics and materials settings, for example), choose an option from the
Show in physics (
Show in instances if in a geometry part;
Show in 3D in a plane geometry under a work plane in a 3D component) list:
All levels,
Domain selection (2D only),
Boundary selection (2D only),
Edge selection (3D only) or
Point selection. The default is
Domain selection in 2D and
Edge selection in 3D. These selections do not appear as separate selection nodes in the model tree. Select
Off to not make any selection available outside of the geometry sequence. From the
Color list, choose a color for highlighting the resulting objects selection. See
Selection Colors.
Select the Construction geometry check box to make the resulting objects available only in the feature’s geometry sequence. For more information, see
Construction Geometry.