I want to form a polygon with the shape of the picture attached. two edges of the shape is a designed curved and I want to define the polygon based on the pins of those curves and using normal positions for the straight line.
Here is my questions:
1- How to put ‘pin’ inside argument of polygon? (something like this:
2- and yet even if I succeed putting pin inside polygon the final shape is not want I intended to have (it will be a filled rectangular), so I need to know is there any way to draw a polygon like the picture?
*If the attachment does not work, this is the link to the picture:
The pins are more useful in the context of connecting building blocks, rather than defining polygon structures.
To answer the polygon part if for some reason you want to use pins:
The point keyword in Polygon accepts a list of (x, y) describing the polygon points in order as drawn.
Note that curve.pin[‘a0’] does not describe the curve. It is a point (pin) to reference a position with respect to the curve. If you want to use a pin position in a polygon (unlikely), use the pin’s xya method:
You need to create a polygon that “carves-out” the desired shape along the outline of the blue structure in your picture. See the next example, and note that the “filled” structure is on the “left side” of the line that defines the polygon. Orientation of the outline matters.