openmc.model.Polygon¶
- class openmc.model.Polygon(points, basis='rz')[source]¶
Polygon formed from a path of closed points.
New in version 0.13.3.
- Parameters
points (np.ndarray) – An Nx2 array of points defining the vertices of the polygon.
basis ({'rz', 'xy', 'yz', 'xz'}, optional) – 2D basis set for the polygon. The polygon is two dimensional and has infinite extent in the third (unspecified) dimension. For example, the ‘xy’ basis produces a polygon with infinite extent in the +/- z direction. For the ‘rz’ basis the phi extent is infinite, thus forming an axisymmetric surface.
- Variables
points (np.ndarray) – An Nx2 array of points defining the vertices of the polygon.
basis ({'rz', 'xy', 'yz', 'xz'}) – 2D basis set for the polygon.
regions (list of openmc.Region) – A list of
openmc.Region
objects, one for each of the convex polygons formed during the decomposition of the input polygon.region (openmc.Union) – The union of all the regions comprising the polygon.