Be carefull with Area, their performances are very poor.

Jérôme Thièvre


[EMAIL PROTECTED] a écrit :
You can also try using Java built in functions. This works for intersecting 
line with polygon or other shape as well as for finding polygon intersection, 
or in other words intersecting polygons.

Area area1= new Area(line2d_polygon_or_some_other_shape);
Area area2= new Area(ine2d_polygon_or_some_other_shape);

Area intersection = new Area();
intersection.add(area1);
intersection.intersect(area2);
//here intersection is the intersected area
[Message sent by forum member 'ginte' (ginte)]

http://forums.java.net/jive/thread.jspa?messageID=261986

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
begin:vcard
fn;quoted-printable:J=C3=A9r=C3=B4me Thi=C3=A8vre
n;quoted-printable;quoted-printable:Thi=C3=A8vre;J=C3=A9r=C3=B4me
org;quoted-printable:Institut National de l'Audiovisuel;Direction Recherche et Exp=C3=A9rimentations
email;internet:[EMAIL PROTECTED]
x-mozilla-html:TRUE
version:2.1
end:vcard

Reply via email to