init
shape_segments
¶
shape_segments module contains classes representing shape segments.
Arc
¶
Bases: ShapeSegment
Arc segment which can be used to define Shape contents.
Arc resolution is determined at rendering time and dynamically adjusted to provide the best image quality. This gives Arc class great advantage over creating arcs with multiple manually defined Line segments.
Source code in src/pygerber/vm/commands/shape_segments/arc.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | |
from_tuples
classmethod
¶
from_tuples(
start: tuple[float, float],
end: tuple[float, float],
center: tuple[float, float],
*,
clockwise: bool
) -> Self
Create a new arc from two tuples.
Source code in src/pygerber/vm/commands/shape_segments/arc.py
get_relative_start_point
¶
get_relative_end_point
¶
get_radius
¶
is_valid_arc
¶
outer_box
¶
Get outer box of shape segment.
Source code in src/pygerber/vm/commands/shape_segments/arc.py
transform
¶
Transform points defining this line.
Source code in src/pygerber/vm/commands/shape_segments/arc.py
Line
¶
Bases: ShapeSegment
Line segment which can be used to define Shape contents.