Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2006

Tip: Looking for answers? Try searching our database.

import java.awt.geom.Area Questions

Thread view: 
chantalnoname@clubobs.com - 26 Jan 2006 16:10 GMT
Hello Guys,

(Sorry for cross-post but comp.lang.java.gui is certainly more better
to post than comp.lang.java.programmer)

I'm doing a subtract between 2 areas.

The result is perfect.

But when I iterate the path of the area each point where a clipping
(intersection of the 2 areas) has been done are doubled !
See sample below :
Area path after subtract :
x: 84.31491088867188, y: 51.65852737426758
x: 83.0599209678765, y: 83.39109768273006
x: 83.05992096787645, y: 83.39109768273006 //doubled
x: 143.85569763183594, y: 67.90008544921875
x: 161.66199908938066, y: 137.78241618833025
x: 161.66199908938097, y: 137.78241618833025 //doubled
x: 205.93727111816406, y: 139.53346252441406
x: 209.21726989746094, y: 56.59829330444336
x: 84.31491088867188, y: 51.65852737426758

Do you know why ?

After when I redo a subtract on this area with another area, the result
is WEIRD !
When I "path" the area, I only get the second point and this time 4
times !
x: 83.05992096787656, y: 83.39109768273003
x: 83.05992096787645, y: 83.39109768273006
x: 83.0599209678765, y: 83.39109768273006
x: 83.0599209678765, y: 83.39109768273003

I have to say that the second subtract don't hide totally the area and
about 45% of area is still visible.

So my question is :
Do i have to first "rebuild" my area by removing the "doubled" points
before do another subtract ?

Thanks in advance,

Chantal.
chantalnoname@clubobs.com - 26 Jan 2006 17:25 GMT
I finally solved my problem by rebuilding my area without similar
points. I just keep each point unique.

Cheers,

Chantal


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.