Mesh
SmoothMeshLines
- CSXCAD.SmoothMeshLines.CheckSymmetry(lines)
- CSXCAD.SmoothMeshLines.MeshLinesSymmetric(l, rel_tol=1e-06)
Internal function, do not use.
- CSXCAD.SmoothMeshLines.SmoothMeshLines(lines, max_res, ratio=1.5, check_symmetry=True, **kw)
This is the form of a docstring.
- Parameters:
- lineslist
List of mesh lines to be smoothed
- max_resfloat
Maximum allowed resolution, resulting mesh will always stay below that value
- ratiofloat
Ratio of increase or decrease of neighboring mesh lines
- check_symmetrybool
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).
- CSXCAD.SmoothMeshLines.SmoothRange(start, stop, start_res, stop_res, max_res, ratio)
Internal function, do not use.
- CSXCAD.SmoothMeshLines.SnapToLines(lines, ref, tol=1e-10)
Internal function, do not use.
Snap every value in
linesthat lies withintol(relative to the total range ofref) of a value inrefback 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.
- CSXCAD.SmoothMeshLines.Unique(l, tol=1e-07)
Internal function, do not use.