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



Loop through each point in a set of straight lines
For each each point, then work out the radius distance from the point to the
previuus point and next point, using a bit of trig (look into Math.Atan)

Draw
1. A line from the previous arc (or start point) to the radius - point.
2. An arc from the radius - to the radius + point

The graphicspath class would work best here
James

--
Create interactive diagrams and flowcharts with ERM Diagram at
http://www.crainiate.net

Take the ERM Tour at http://www.flowchartcontrol.com


"Shiv Kumar" <shivkatterolsdottcomm> wrote in message
news:OBk%23jL4kFHA.2916@xxxxxxxxxxxxxxxxxxxxxxx
>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: analytical Skill for Java Development
    ... turtle than with Phytaghoras! ... radius") might be consiedered as "normal" even if it is not said ... I'm not sure what's implicit in an instruction to draw a circle. ...
    (comp.lang.java.programmer)
  • Re: cnc lathe programming question
    ... We do all programming with Mastercam and we also DO NOT use tool raduis ... on the machines so all start and end points are with the insert radius ... So a .01 radius on the begining and end of a .0625 champher. ... Draw your radii at .625 then accurately draw your problem with the scale protractor and compass. ...
    (alt.machines.cnc)
  • Re: Id never seen this before
    ... radius, the other, earth radius plus tower height. ... the geometric distance from tower top to earth horizon. ... Draw a radial line from the center to the circle. ...
    (rec.aviation.piloting)
  • Re: (Seemingly) simple geometry problem
    ... Draw three radii to ... perimeter, ... equal to the radius of the circle. ...
    (sci.math)
  • Re: Proof Without Words: d/dx (sin x) = cos x ?
    ... > "Behold" illustration) of this fact? ... Draw a unit circle oriented counterclockwise, pick a "generic" radius ... tangent vector (representing velocity vector, ...
    (sci.math)