I was using the pcbnew function DRAWSEGMENT for this, so I blindly assumed that this could use the Segment type for this, but on closer inspection, this API was creating a series of gr_line elements that are almost the same properties as Segment but don't have an associated net.
I'm using these on the Edge.Cuts layer to shape my board.
I took a stab at adding support for this; it appears to do the right thing for my design; does this look right?
Note that the start and end elements are required to be first.
I was using the pcbnew function
DRAWSEGMENT
for this, so I blindly assumed that this could use theSegment
type for this, but on closer inspection, this API was creating a series ofgr_line
elements that are almost the same properties asSegment
but don't have an associated net.I'm using these on the
Edge.Cuts
layer to shape my board.I took a stab at adding support for this; it appears to do the right thing for my design; does this look right?
Note that the
start
andend
elements are required to be first.