bfieldtools.utils.get_quad_points

bfieldtools.utils.get_quad_points(verts, tris, method='seven_point', index=None, return_ref_coords=False)

Get quad points and weights from quadrature rules implemented in quadpy

Parameters
verts: array-like [Nverts x 3]
tris: array-like [Ntris x 3]
Returns
w: array-like (Nquad, )

quadrature weights

qp: array-like (Ntris, Nquad)

quadrature points in each triangle