Given a point[] for a ploygon draw it with rounded corners



I need to be able to draw a polygon with rounded corners. That is given
(say) an array of points that form the polygon, I'd like to draw it such
that the corners are rounded (the radius needs to be configurable).

How would I go about doing this?
--
Shiv Kumar (THF Team)
http://www.dynamicarchitects.com


.



Relevant Pages

  • Re: multiple polygons on one image
    ... (An array is defined ... // fill the background color ... // choose a color for the polygon ... // draw the second polygon ...
    (comp.lang.php)
  • Re: Given a point[] for a ploygon draw it with rounded corners
    ... A line from the previous arc to the radius - point. ... >I need to be able to draw a polygon with rounded corners. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Mapping z coord bits to depth-buffer bits in ortho mode
    ... each polygon is drawn as an opaque ... One way to correctly render the scene is to draw everything in back-to- ... draw polyon 0 fins, draw polygon 1 fill, etc). ... guaranteed not to map to the same depth-buffer value) should in the ...
    (comp.graphics.api.opengl)
  • Re: Position Constraints
    ... Draw a polygon using impoly, ... The part I originally could not figure out - how to draw a new patch object allowing only the original polygon vertices as clickable points. ... set ButtonDownFcn for figure/axis that returns variable 'point' of axis position and allows the placement of new shapes on the axis. ... This loop tests all the rows of the Vertices matrix to compare those coordinates with the new clicked coordinates. ...
    (comp.soft-sys.matlab)
  • Re: how can I change the format of a text box from square to oval
    ... AutoShapes list on the Draw menu (boxes with rounded corners are under Basic ... Some shapes have nothing to change, in which case, no yellow diamond. ...
    (microsoft.public.word.drawing.graphics)

Loading