askiff.gritems.GrArcPCB

class askiff.gritems.GrArcPCB

Bases: askiff.common.BaseArc, GrShapePCB

Inheritance diagram of askiff.gritems.GrArcPCB

Graphic arc element on a KiCad PCB. Represents an arc segment defined by start, mid, and end points

calculate_circle() BaseCircle

Calculates center point and radius of the circle, the arc belongs to

Return type:

BaseCircle

classmethod deserialize(sexp: askiff._sexpr.GeneralizedSexpr) Self

Deserializes a KiCad sexpr representation into an object instance. :Parameters: sexp – pre-parsed S-Expression AST

Returns:

Deserialized structure

Parameters:
sexp : askiff._sexpr.GeneralizedSexpr

Return type:

Self

Notes

  • Uses _AutoSerde__deser_field* tables for efficient lookup how to deserialize encountered objects

  • Places unrecognized field in __extra/__extra_positional and issues warning

  • Encountered str objects are processed as positional or bare-flag components

  • Tuples are processed as normal args treating first object as keyword identifying target field

classmethod deserialize_downcast_agg(sexp: askiff._sexpr.GeneralizedSexpr) Self

Deserializes a sexpr into an instance of the class or one of its downcast subclasses

Parameters:
sexp : askiff._sexpr.GeneralizedSexpr

Return type:

Self

extrema_points() collections.abc.Sequence[Position]

Calculates the extrema points of the arc That is start, mid and end points & any additional extrema from the enclosing circle that belongs to arc.

Return type:

collections.abc.Sequence[Position]

serialize() askiff._sexpr.GeneralizedSexpr

Serializes the object into a S-Expression AST

Fields are processed in order: __ser_field_positional, __extra_positional, __ser_field & __extra

Return type:

askiff._sexpr.GeneralizedSexpr

to_global(ref_pos: Position) None

Changes object coordinates in place to global ones using ref_pos as current origin.

Parameters:
ref_pos : Position

Return type:

None

end : Position

End point of the arc segment.

layer : askiff.common_pcb.BaseLayer

Layer where the graphic shape is placed

locked : bool | None = None

Whether the graphic shape is locked against modifications.

mid : Position

Middle point defining the arc’s curvature.

net : askiff.common_pcb.Net | None

Net identifier for the graphic shape element.

solder_mask_margin : float | None = None

Solder mask margin value for the graphic shape

start : Position

Starting point of the arc segment.

stroke : askiff.common.Stroke | None = None

Visual styling configuration for the graphical shape’s outline and stroke appearance.

uuid : askiff.common.Uuid

Unique identifier for the graphical item.


Last update: 2026-05-05