472,951 Members | 2,007 Online

# How to enlarge a 2D polygon (conex, nonconvex)

I am looking for an algorithm that enlarge a 2D polygon.
cheers,
Nov 13 '05 #1
2 3118
I am looking for an algorithm that enlarge a 2D polygon.
cheers,

Is polygon is a set of 2D points, how about multiplying all of them by some
value ?

x[i] *= zoom;
y[i] *= zoom;
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~l-.~~~~~~~~~~~~~~~~~~~
GG-1175498 ____| ]____,
Rafal 'Raf256' Maj X-( * )
Rafal(at)Raf256(dot)com ,"----------"
Nov 13 '05 #2
yes the polygon is a set of 2D points;
No this will not work. by multiplying we are just moving the polygon.

"Rafal 'Raf256' Maj" <sp**@raf256.com> wrote in message news:<Xn**********************@213.180.128.20>...
I am looking for an algorithm that enlarge a 2D polygon.
cheers,

Is polygon is a set of 2D points, how about multiplying all of them by some
value ?

x[i] *= zoom;
y[i] *= zoom;

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.