Re: Rounded Polyline, and other questions?
- From: anthonym overture com
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: Rounded Polyline, and other questions?
- Date: Fri, 2 Jul 2004 11:56:40 -0700
So thinking about this further I think what I'll do is create a function
which will generate the entire rounded polygon as a polygon, that way
polygon fill will just work. I remembered that in the Graphics Gem I
grabbed the fillet code from, they had a function to draw an arc made
of line segments, cannibalizing that I should be able to create a
function to create a new polygon consisting of the clipped segments
of the original polygon and segmented arcs (segmented at say 1 degree
increments).
This might also be a useful way to do rounded rectangles, because you
can simply use polygon filling again. I believe that would mean that
all standard shapes would then be either an ellipse fill or a polygon
fill (ie, no stitching together of filled areas, like occurs in the
rounded box case). Would that allow for anything interesting to be
done with fill styles? (I noticed some sort of comment in the box
code about fill styles not working for rounded boxes).
Anyway, I'll hopefully get around to implementing this weekend.
If I get it done should I change the rounded rects to be done in
the same way?
-Anthony
--
------------------------------------------------------------------------
Anthony Molinaro <anthonym overture com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]