On Friday 31 August 2007 7:29 pm, Peter K. Stys wrote:
> there's the rub Don: picking the "center" of a poly is key, else the
> poly will translate, and not just shrink. The "centroid" (ie virtual
> center of gravity) is no good for concave polys (like a banana)
> because this point may lie outside the poly, so the poly will move.
>
> I really don't know how to do this correctly. Seems so obvious!
>
Right, I can see a problem here. If we take a circle as an example, we know
where the center is. Now, if we cut a small piece off of the circle it would
change the calculated center, but we'd really like it to shrink the same as
before using the same center point as before. I'm not sure that there is a
mathematical answer to this.
If you find something that works, I hope you'll let us know.
Don
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|