magnet.cell.Quad#
- class magnet.cell.Quad(nodes=None, mesh_vertices=None, faces=None)#
Bases:
PolygonConstructor
- __init__(nodes=None, mesh_vertices=None, faces=None) None#
Methods
Inherited Methods
__init__([nodes, mesh_vertices, faces])area()Compute the area of the polygon.
centroid()Compute centroid coordinates of the polygon.
inscribed_diameter([center])Compute the diameter of the inscribed circle of the cell.
is_counterclockwise()Check if polygon vertices are ordered counterclockwise.
is_inside(p)Check if a point is inside the polygon.
perimeter()Compute the perimeter of the polygon.
sort_nodes()Sort nodes of a polygon on the perimeter.
volume_center()Compute the area and centroid of the polygon.