vernier_scale¶
- photonforge.stencil.vernier_scale(unit, marker_length, marker_width, divider=10, gap=0, triangular_marker=False)¶
Create a Vernier scale.
- Parameters:
unit – Distance between markers in the main scale.
marker_length – Length of the scale markers.
marker_width – Width of the scale markers.
divider – Divider used for the secondary scale. The Vernier constant will be unit / divider (scale readability).
gap – Distance between the main and secondary scales.
triangular_marker – Flag indicating the use of triangular markers.
- Returns:
Tuple with 2 list of structures.
scale_1um = vernier_scale(15, 10, 2)
scale_2um = vernier_scale(15, 10, 2, divider=5, gap=-2, triangular_marker=True)