I have to make custom shape PCB - I imported DXF file from solidworks, to get custom shape as edge.cut.
Everything imports as nice except top arc.
Edge cut is compleated but - it isn’t displayed right. (Red background- top coper layer)
// Arcs are approximated by segments: define the number of segments per 360 deg (KiCad uses 0.1
// deg approximation). Be aware 3600 / ARC_APPROX_SEGMENTS_COUNT_LOW_DEF is an integer.
#define ARC_APPROX_SEGMENTS_COUNT_LOW_DEF 16
#define ARC_APPROX_SEGMENTS_COUNT_HIGHT_DEF 32
a workaround is to convert your big arc into polyline inside your dxf editor and re-export the edge…
Then your board will have an edge with an approximation of the arc, but the fill zone will be aligned to edge test-circle-to-polyline.kicad_pcb (15.0 KB)
my board was circular for most of it, so I just used a python script to generate the circular zone outline with as many segments as deemed necessary for the large diameter to get a nice outline that wasn’t as segmented. warning: script output needs to be put into the kicad_pcb file manually with a text editor