Q:
If a polyline has multiple segments with different widths, the polyline maybe beveled at the point where the segments meet. Is there a way to determine programmatically which vertices of a polyline are beveled?
A:
There is not a property that will provide this information directly. One suggestion would be to calculate the angles between the polyline segments. The angles that determine if the bevel is drawn can be estimated from this comment in the regen code:
/* Polyline bevelling criteria: allow bevelling if two edges meet at (roughly) 15 to 179.5 degrees. */
#define MINBEVEL .25 /* About sin(15 deg) */
#define MAXBEVEL .009 /* About sin(.5 d) (= sin(179.5 d)) */

Leave a Reply