Polygons with hole inside

seb
06-03-2004, 03:01 AM
Hello everyone,

I have an application that allows me to draw and manipulate all kind of shapes. Now i would like to be abble to draw a polygon with an hole in it.
Can anyone help me with that?

Thanks in advance, sebastien.

Anonymous
06-03-2004, 07:06 AM
You can have shape with hole using <path> element.
You describe outline with M .... and inner with M .... but in other direction.
A sample :
<path d="M50 50h200 v200 h-200z M100 100 v50 h50 v-50z" fill="red"/>
If you want to get this shape in your application, you can let user draw two polygons, but you have to manage outline and innerline ...

Michel

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum