ID: | 3272 |
From: | pc...@cuvoodoo.info |
Date: | Tue, 13 Aug 2019 09:54:25 +0200 |
Subject: | [pcb-rnd] multi-object shape |
replies: | 3273 from ge...@igor2.repo.hu |
I am trying to draw a rounded rectangle pad (padstack) in a footprint/sub-circtuit (subc). as specified here: http://repo.hu/projects/pcb-rnd/developer/lihata_format/tree.html the padstack_prototype contains ps_proto_v4, which contain ps_shape_v4, where you can draw either of those object: line, circle, polygon. there is no rectangle shape. this must be drawn using a polygon. but polygons only are a collection of straight lines between points (as described here: http://repo.hu/projects/pcb-rnd/user/02_model/index.html). no arc, thus no rounding is possible (except using approximation). to circumvent this issue I thought about creating a padstack with multiple elements: a polygon with cut corners, and 4 circles for round corners. this issue is that (AFAICS) ps_shape_v4 only supports one object (the following are ignored), and the ps_proto_v4 only supports one shape per layer combination. thus I am no able to have a multi-shape padstack prototype. is my analysis right? could it be possible to have multi-object shapes, or a multi-shape prototype? if not, what is the reason? I see one possible difficulty: finding the center of the prototype when there are multiple elements. for that the overall surface center could be used, or additional center attributes could be specified.
Reply subtree:
3272 [pcb-rnd] multi-object shape from pc...@cuvoodoo.info
3273 Re: [pcb-rnd] multi-object shape from ge...@igor2.repo.hu