kicad2ems.pcbqs.panels3d

1/R moments between triangles of any orientation (side-wall panels as well as
the horizontal sheets).

    m0, mro, mrs, mrr = pair_moments(Vo, Vs, outer_levels=1)

For each pair of an observation triangle Vo[k] and a source triangle Vs[k] ((m,
3, 3), metres):

    m0  = int_o int_s 1/R            mro = int_o r int_s 1/R      (3-vectors)
    mrr = int_o int_s r.r'/R         mrs = int_o int_s r'/R

The source integral is analytic: in the source triangle's own frame (two
in-plane axes and its normal) an observation point is (u, v) over the plane at
height w, which is the horizontal kernel's (x, y) at offset d
(emsdev.numerics.sing.offplane_pairs), so the same edge formulas hold; the
in-plane moment comes back to 3D through the frame. The observation integral is
the 6-point rule, on 4**outer_levels sub-triangles. For two horizontal triangles
this is offplane_pairs exactly (tests/test_panels3d.py).

From the moments an RWG pair's  int int f_m . f_n / R  (f = alpha (r - v) on
each triangle) is alpha alpha' (mrr - v'.mro - v.mrs + v.v' m0)  (rwg_pair).
kicad2ems.pcbqs.panels3d.frames(V)[source]
Per triangle (V (m, 3, 3)): origin (vertex 0), in-plane axes e1, e2, unit
normal n, area. e1 runs along edge 0 and n = e1 x e2 follows the vertex
order, so the triangle is counter-clockwise in (e1, e2).
kicad2ems.pcbqs.panels3d.pair_moments(Vo, Vs, outer_levels=1, scalar_only=False)[source]
(m0, mro, mrs, mrr) of each pair (Vo[k], Vs[k]): m0, mrr (m,), mro, mrs
(m, 3). See the module.
kicad2ems.pcbqs.panels3d.rwg_pair(moments, ao, vo, as_, vs)[source]
int int f_o . f_s / R for basis halves f_o = ao (r - vo) on the
observation triangle and f_s = as_ (r' - vs) on the source triangle, from
pair_moments' (m0, mro, mrs, mrr); ao, as_ (m,), vo, vs (m, 3).