kicad2ems.gfdtd.smooth

kicad2ems.gfdtd.smooth.MeshLinesSymmetric(l, rel_tol=1e-06)[source]
Internal function, do not use.
kicad2ems.gfdtd.smooth.SmoothMeshLines(lines, max_res, ratio=1.5, check_symmetry=True, **kw)[source]
This is the form of a docstring.

Parameters
----------

lines : list
    List of mesh lines to be smoothed
max_res : float
    Maximum allowed resolution, resulting mesh will always stay below that value
ratio : float
    Ratio of increase or decrease of neighboring mesh lines
check_symmetry : bool
    If True (default), a symmetric input mesh is detected and only one half
    is smoothed and mirrored. Set to False to disable this detection and
    smooth the full line set directly (e.g. if a coincidentally-symmetric
    mesh should not be treated as symmetric).
kicad2ems.gfdtd.smooth.SmoothRange(start, stop, start_res, stop_res, max_res, ratio)[source]
Internal function, do not use.
kicad2ems.gfdtd.smooth.SnapToLines(lines, ref, tol=1e-10)[source]
Internal function, do not use.

Snap every value in ``lines`` that lies within ``tol`` (relative to the
total range of ``ref``) of a value in ``ref`` back onto that exact reference
value. Used to preserve user-supplied fixed mesh lines bit-exactly through
the mirrored (symmetric) smoothing paths, which otherwise reconstruct them
from a floating-point center and introduce a ~1 ULP error.
kicad2ems.gfdtd.smooth.Unique(l, tol=1e-07)[source]
Internal function, do not use.