Organization Problem

I'm writing a portion of a program which is meant to do pathfinding using a series of connected convex polygons to denote the area on which the agent (the person trying to find a path) can walk. A* and some basic vector math make most of it pretty simple. However, I've rewritten the code a couple times because I can't decide on the best way to represent the data structures involved. Finally (and most difficult) I need to be able to save, load, and edit the map.
I basically just need a main class (call it Map) which contains Areas which are just convex polygons with geometry data and a set containing all polygons it is adjacent to. The points are simply double2 or double3 containing 2- or 3- dimensional coordinates.
My first idea was to simply have the Area store the points it's made of and adjacent areas. However, then I have to write a messy function to work backwards and figure out which edges the areas have in common. So then I associate a list of edges with the list of adjacent areas to store that information. But now I have the problem when I save, do I store two+ copies of each point (one associated with each edge it is an endpoint of and one associated with each polygon it is a part of) and multiple copies of edges that are part of multiple polygons? This requires messy functions which compare points (and edges) to determine if they are equal. So I thought about indexing the points, then having the edges simply storing two int's and the areas storing int's to reference the edges. But then I have a hard time drawing the polygons because the edges have to be in a specific order and the points in the edge have to be in the right order so I also need the areas to have int's to reference the points. But now with everything indexed, any insertions or deletions I make require me to go through and find all the dependencies and correct them so that the indices are the same.
Can anyone think of a way to represent this hierarchy that would avoid most of these issues and allow me to cleanly deal with the remaining problems?

I can use the Polygon class to represent a convex polygon, Line2D.Double to represent an edge, Point2D.Double etc, but this only creates more problems - I need to extend these classes to implement all the functionality I need, Polygon coordinates must be int instead of double, and I can no longer implement 3D coordinates easily. This also solves almost none of the issues I mentioned above.
EDIT: I think I might just have to index everything and simply tread carefully when I write the editing code.
Edited by: blevinstein on Aug 15, 2008 12:45 PM

Similar Messages

  • Have Operating System 10.6.8, Mail Program 4.6.  How can I prevent the next email in the que from automatically opening after I act on the previous email ? It creates big organizational problems for me. My computer changes this mode from self opening to m

    Have Operating System 10.6.8, Mail Program 4.6.
    How can I prevent the next email in the que from automatically opening after I act on the previous email ? It creates big organizational problems for me. My computer changes this mode from self opening to manually opening every few month with no ? action from me.
    Help

    Have Operating System 10.6.8, Mail Program 4.6.
    How can I prevent the next email in the que from automatically opening after I act on the previous email ? It creates big organizational problems for me. My computer changes this mode from self opening to manually opening every few month with no ? action from me.
    Help

  • Organization problems with 2011 updates so all these hints I'm getting from 2006 aren't going to help because I knew how to drag my songs to playlists last week.

    Organization problems with this months update!  
    I was the neighborhood Itunes "expert" till the recent update.  I have read and read the help and I cannot drag my songs to from music playllist to "marathon" playlist.
    AND what is that annoying blue selector bar doing???? 
    I need to run at 5 a.m. .... why why why did they make such big changes.  I have a 100+ songs I  bought tongiht.  Now I'm stuck. 
    I'm 40. and I don't have time to social network on Itunes.  The children may have time but I'm the one with the money so I decide where they purchase their songs and what brand of phone we will select.
    Forgive me.  I am really upset because I have been using this program for years and now I have a chance for 4 hours of sleep and Itunes is trying to be Facebook.  I don't want to ping.  Social networking is a saturated field.  Apple missed the boat.  They need to move on.  I social network a lot but NOT where I am spending my money.
    Uggggg

    I'm not sure I actually spotted a question above. Ah got it now.
    The usual playlist mistake is to try and drop tracks onto a smart playlist, but I assume you're aware of that one.
    Can't say I've noticed any problems making playlists but the 10.2.2.12 build does have some issues with the physical organising of files. Perhaps there are some other quirks that have yet to gain attention. Either way you may benefit from downloading the latest build - iTunes 10.2.2.14 - but you need to download it manually from http://www.apple.com/itunes/download/ (scroll down for 64-bit links if relevant)
    For reasons beyond our ken the Apple download site, and it seems Apple Software Update, ignore the minor revision number. If you check for updates when running 10.2.2.12 you will be told that 10.2.2 is the latest version of iTunes, and so won't be offered an update.
    Once you've updated disabling and then enabling the "Keep iTunes Media folder organised" option will tidy up any files that are still in your download folder.
    tt2

  • MediaSource Organizer problem on Windows

    I just installed everything that was on the creative CD that came with my Zen NOMAD Xtra 40gb but ever time I run the MediaSource Organizer and something pops up telling me that there was a problem and then it will ask me if I want to send an error report to microsoft. I am running windows xp home edition sp. When I installed the software on my windows 2000 computer it worked fine but I don't use that computer anymore anyone know what the problem could be? Thank you for the help in advance.

    Frankly the problem IS Mediasource with Win XP Sp, IMHO. I had terrible luck with it for 3 days (I'm a wiz at figuring out difficult software too!) constant crashes in Win XP SP (and no thanks I don't "want" SP2). So I went to www.nomadness.net and saw the post overwhelmingly praising Notmad (redchairsoftware.com) even though it's not free ($25 register fee).
    USB recognition of Xtra interface within Mediasource is dicey at best I found.
    My daughter has a Xtra too (bought two both working great) and runs Mediasource on Win 98 SE with zero problems. So it must be Mediasource and Win XP not playing nice, I figure.
    I strongly recommend uninstalling the CMC and keeping only the needed driver on your PC. You can transfer songs with Windows Media Player if you need a "free" solution, but nobody does it better than Notmad. Also there are lots of free ripping software choices as well.
    Good luck and post your progress.Message Edited by LivNgD34Dgrl on 0-07-2005 06:53 AM

  • Organization Problems.  Can no longer put songs in playlists.

    First
    "Why am I reposting my earlier question?"
    ANSWER:
    1.  I had to post my question a second time because as you can see my first post isn't showing as a question anymore nor does it allow me to recheck the   "box" that turns my post into a  question.
    2.  I received suggested answers via a "popup".  The answers were dated 2006 and 2008.
    3.  While some questions may be able to have answers from that long ago, my question requires a 2011 answer.
    I knew how to drag songs to my playlist in 2008!
    4.  The saddest part is while Apple is sending me expired answers from 2006 and 2008, Ask.com already has a thread on this subject.
    Second:  Please help me with my original question.
    How do I select multiple songs and move them to a playlist?
    1. I was shocked when I went into Itunes and I could not drag any of my songs from one playlist to another.  I clicked and tapped and held down the cntrl/shift key.  Until yesterday, I would have told you I was extrememly confident in my Itunes skills.  It is one thing to not realize that this would be a problem but then to have NOTHING in the "help box" that addressed this common issue. 
    2. I teach "Writing in the Workplace" so I know that I exhausted the Itunes "help" box as well as anyone could.
    3.  I manually manage my music and I am going to continue to manually magage my playlists due to organizational needs.
    4.  AND I need to move songs to playlists WITHOUT activitating Ping.
    5..  I feel like Apple is bullying me into using PING.  I say this because the Itunes help section DOES have instructions on how organize my playlist IN PING.
    <Edited by Host>

    Thanks for responding!
    My question is  the Headline and Is repeated as the 2nd header.
    Second:  Please help me with my original question.
    How do I select multiple songs and move them to a playlist?
    I have songs in my "music" playlist and all I need to do is move them to my "marathon" playlist.
    Obviously, there has been an upgrade that changed the basic operation something that has my songs locked in place.  However, nothing appears in the "help" that remotely answers my question.  
    I am just really sad it has taken me so long for something so simple and that I had to post here for something that should have been in "help" before the change was allowed to even happen. 
    Soooo....too make a short question even longer I had to run my 1/2 marathon without music this morning and I am not closer to getting those pesky music files to move from one playlist to another.
    Hope you can help!  I got so many hits last night but no one even said "boo".  I think it is because my first message was marked "solved"

  • Acrobat 9 Pro - Unusual Organizer Problem

    I am currently using Acrobat Pro 9.4.6, but this problem first occurred two updates ago.  The last two times I made a new Organizer collection, it added multiple entries for the same collection.  These multiple entries appear on the drop down list for the Organizer collections in the main Acrobat window, but do not appear in the Organizer window itself.  Each of the multiple entries contain the same items I put in the collection, and it doesn't matter which of the multiple entries I choose -- all the shortcuts are valid shortcuts and will open the documents for me.  The multiple entries are therefore identical.  The first time this happened, it created three multiple entries; the last time I made a new Organizer collection, two days ago, it created six multiple entries.  I can't figure out how to eliminate the multiple entries without deleting the entire collection and starting over; I've even tried this, but when I create another collection, the problem will just happen again.  Does anyone know how to fix this?

    There is a kb document on this error.
    http://helpx.adobe.com/creative-suite/kb/error-invalid-serial-number-acrobat.html

  • WIN/Vista, PSE 7.0:  Organizer problems with dates

    Im working with our scanned photos now, so there is no EXIF data and the only dates are the scanned date and any later corrections in Photoshop CS3 before or after importing into PSE 7.0. I now have two date related problems that I didnt have with PE 5.0.
    1) In the Organizer view, when I right click on the date to bring up the Adjust Date and Time screen, then click on Change to a specified date and time and click OK the day automatically changes to a day earlier, which has caused much confusion since all I am wanting to do is set a time to sequence photos from multiple cameras. How do I keep it from automatically changing the date?
    2) Also, Ive had multiple times that Ive changed the date on a couple of photos and PSE 7 will place them incorrectly so that they are non-chronological. Specifically I now have two photos from a string of many on Dec 24 & 25, and some on Dec 26 and after. These two photos belong on Dec 26 chronologically, as well as where they fit in my file naming system. If I change the date on these to 12/26/1976, though, they are placed in my 12/25/1976 photos, not 12/26 where they should be. I have another photo dated 1/17/1977 that PSE has placed between 1/16 and 1/9/1977.
    I thought these were quirky enough that I actually removed and reinstalled PSE 7.0, but these issues are unchanged.
    FYI: Settings in Edit>Preferences:
    General/Display Options/Date (Newest First): Show Newest First within Each Day is selected
    Files/File Options: Use Last Modified Date if EXIF . . . is unchecked.

    > In the Organizer view, when I right click on the date to bring up the "Adjust Date and Time" screen, then click on "Change to a specified date and time" and click "OK" the day automatically changes to a day earlier, which has caused much confusion since all I am wanting to do is set a time to sequence photos from multiple cameras. How do I keep it from automatically changing the date?
    When a photo has a date but unknown time, PSE 6 and 7 (and perhaps 5 too) behave this way. Its a bug thats been reported to Adobe.
    > 2) Also, I've had multiple times that I've changed the date on a couple of photos and PSE 7 will place them incorrectly so that they are non-chronological. Specifically I now have two photos from a string of many on Dec 24 & 25, and some on Dec 26 and after. These two photos belong on Dec 26 chronologically, as well as where they fit in my file naming system. If I change the date on these to 12/26/1976, though, they are placed in my 12/25/1976 photos, not 12/26 where they should be. I have another photo dated 1/17/1977 that PSE has placed between 1/16 and 1/9/1977.
    When this happens, which view are you in? Display > Thumbnail View or Display > Folder Location view? Is this using Smart Albums to search by date? If this is still happening, can you upload a screen shot, the incorrect 12/26/1976 photo, and the adjacent 12/25/1976 photo? You can post these for free at www.pixentral.com. Ill take a look at their metadata.
    There are a number of problems with time unknown, so Ive stopped using it:
    http://www.adobeforums.com/webx?128@@.59b6aaa0
    In particular:
    - Search with date ranges doesnt properly handle time unknown.
    - Other tools, such as Vista Explorer, dont correctly handle dates with time unknown in metadata written by PSE.
    - If you have a series of slides youve scanned, you know their relative time ordering (due to the slide numbering) but not their absolute time. Theres no convenient way of preserving that ordering within PSE thumbnail view if you use time unknown.
    So instead of unknown, I assign the times 12:00 AM, 12:05 AM, 12:10 AM, etc. (leaving gaps in case I need to insert another scan later).

  • Shopping cart having purchase organization problem

    Dear Experts,
    We are working on classic sceanario with SRM 5.0 integrated with ECC 6.0.
    While creating shopping cart for direct material we are having an error message as "System SRDCLNT110 (SRM system) of purch. organization Central Purchasing (purchase org defined) differs from doc. reference SRDCLNT110 (SRM system)". The error message is displayed whenever we are clicking on "Order as Direct Material".
    The message no is BBP_PD540 and support pack we are having SAPKIBKT03 on SRM.
    Kindly suggest solution.
    Thanks
    Dinesh Singh

    Hi,
    The problem may be definately due to the SP level you are on currently.
    For config settings,see the foll threads for pointers:
    Re: Direct Material Procurement scenario
    Catalog item shopping cart error
    Re: SAPKIBKT10 Problems
    Re: System RD2CLNT400 of pur. org. DOI differs from doc reference SD2CLNT400
    Error in 'bbp_extreq_transfer'(plan driven procurement)
    System RD2CLNT400 of pur. org. DOI differs from doc reference SD2CLNT400
    See these related notes(for SP higher then SP03);
    Note 913831 - SRM 5.0: BBP_PD 540 blocks ECS with back-end POrgs
    Note 832097 - EBP 5.0: Purchasing organization check (Message 540)
    Note 823852 - Creating shopping carts: Express message no BBP_PD(540)
    750247 - EBP 5.0: Express documents when changing EKORG
    624172 - Purchase order not created due to missing purchasing group
    816867 - Resetting the purchase organization after express message
    BR,
    Disha.
    Do reward points for  useful answers.

  • Photoshop Elements Organizer problems:

    I have been using Elements 12 very successfully until today. When I opened the Organizer, I can only see the bottom half of the page. The Folders panel on the left of the screen and the Tags panel on the right of the screen are out of site and "off the screen" above the top of my monitor and I cannot get the page to come down from the top to view the rest of my Organizer library.
    Can you help?
    Message was edited by: etuckerjr1949

    Hi, I have a very similar problem and am feeling quite frustrated that Adobe "help" is so technical.  I was using Elements 12 quite successfully for many months and then last month it started freezing and crashing in the catalogs and then the editor.  I have updated, uninstalled and reinstalled, etc.  Now I get the editor to open but not the organizer.  I see so many similar complaints posted in the Adobe forum.  What gives?  This used to be a great program and now it's useless.  Are you all trying to force us to go to the cloud subscription?  I'm an amateur photographer and don't need the full suite, Elements was always just enough... til now....
    I'm using Windows 7 by the way, my system scans are all clean and all other programs are just fine.

  • 'organizer' problems

    After clicking the organizer icon, the program automatically shuts down with a message: pse7 (organizer) has encountered a problem and needs to close. please tell microsoft about this problem"  This happened from one day to the next. I did not add any new software and just the day before I downloaded photos from my canon 40d with now problems.  The next day after downloading new photos, the problem started.  does anyone have any ideas?  i started a trouble ticked thru adobe but as of yet have not received any help.  I am at a loss as to what to do. Any ideas would be greatly appreciated.

    Unfortunately, there could be many reasons PSE might crash, and it can be hard to diagnose. I suggest working methodically through these troubleshooting steps:
    http://www.johnrellis.com/psedbtool/photoshopelements-6-7-faq.htm#_Troubleshooting_Organiz er_crashes

  • Elements Organizer Problem - Question Marks and Application Won't Quit Cleanly

    I recently upgraded from Photoshop Elements/Premier Elements 11 to version 13 on a Mac.  After the upgrade, my elements organizer is experiencing some issues.
    1.  When I click on a double click on a thumbnail, I am taken to screen that has a large question mark on it.  (Not the photo)  Elements organizer knows exactly where the file is on my hard drive though as I can edit it in photoshop elements.  In addition, I can right click on the thumbnail and select show file Info -> Double click on Location.  When I do this I am taken do the correct file in finder. 
    2.  My other issue is that the program doesn't close properly.  If I choose Quit from the menu bar, the program GUI closes, but it stays resident in my dock.  I have to force close in order to open the organizer again.
    Any help would be greatly appreciated.
    Thanks!
    Ben

    Trying renaming your contacts.xml file. To access the file, you need to go - Macintosh HD/Library/Application Support/adobe/elements organizer/organizer/settings I just named it "renamedfile.xml". A new contacts file will appear after you reopen the program.
    I've had this problem a few times and renamed this file (after a support person from Adobe told me to the first time). It opens after I remaned it.
    The contacts function of the organizer doesn't seem to be a stable. It always deletes entries that I want to add in.
    Hope this helps

  • PSE 9 - Organizer: Problem with Menu Bar

    PSE 9 Organizer:  How can I freeze in a expanded mode the Menu Bar at top of Organizer workspace ?

    Many thanks for the reference.  In fact, it brings
    a practical and useful solution to that problem.
    Regards,
    Jean Desjardins
    Laval (Qc)

  • PSE 9 Organizer Problem

    Hallo,
    ich habe folgendes Problem:
    Auf meinen Rechner mit Betriebssytem XP habe PSE9 installiert. Beim Starten des Organizer meldet vor kurzem die Dynamiclinkmanager.exe einen Fehler.
    Habe PSE9 neu installiert und kam immer noch die Fehlermeldung. Seit ein paar Tagen wird diese nicht mehr angezeigt. Dafür habe ich ein neues Problem.
    Da ich immer RAW+JPG fotografiere. Wurden die Bilder immer nebeneinander im Organizer angezeigt. Jetzt nach diese Dynamiclikmanager-Fehlermeldung nicht mehr. Das Aufnahmezeit ist auch unterschiedlich z.B. JPG 19.05.2011 13:22 Uhrund bei RAW 19.05.2011 15:22 Uhr. Dabei ist die richtige Uhrzeit 13:22 Uhr wie die Zeit der Kamera.
    Wo kann das Problem liegen. Ich hoffe doch, dass jemand mir helfen kann.
    Grüße
    Gunter

    Many thanks for the reference.  In fact, it brings
    a practical and useful solution to that problem.
    Regards,
    Jean Desjardins
    Laval (Qc)

  • ZENcast Organizer problem (podcas

    I have never been able to download a podcast from the ZENcast Directory. I always get the following message: "Creative ZENcast has encountered a problem and needs to close. We are sorry for this inconvenience. Please tell Microsoft about this problem." A choice between Debug, Send Error Report, and Don't Send is then necessary.
    What can I do to remedy this problem

    It does separate the audio from the video. If the player cannot do video it will only load the audio podcasts. Inside the music folder(when you view the files thru Media Explorer) there should be a folder named ZenCast & the files should be inside there with each podcast inside it's own folder. At least that is how mine are on my ZenMicro,MicroPhoto,Zen SleekPhoto.On the player itself they will show up as albums. The ZenVM is different.since it has video capability. Those are found under Video>ZenCast regardless of whether they are just audio. I can say I have gotten transfer errors when I started transfering BEFORE WMP? has seen the player. The workaround that has been working for me is. I connect my player if the autoplay does not open I open WMP click on the sycn tab & wait until WMP see it I then close WMP & open ZenCast & sync the files without errors. Now this on a Vista comp. using my Micros/MicroPhotos since all my ZenCast files are on that one. Hope this hel
    ps.
    Also are you using this version of ZenCaast?(NOT A LINK TO THE FILE)
    Creative ZENcast Organizer 2.0.0 Suite

  • Photo Event Organization Problem

    I had about 20,000 plus photos in I-Photo all organized by event and date.  I decided to download another 1700 photos from a remote hard drive from my career and after they were imported, all the organization of the events was lost.  I cannot seem to figure out how to get them back into the same organized manner without manually going through every photo.  I did that to create the events originally and I cannot tell you how long that took.  I had them backed up to an external drive and when viewed on that drive, they are correct but I cannot get them back onto my Macbook in that order.  What gives?

    What gives? You did something wrong someplace  --  how did you "download" another 1700 photos from a remote hard drive?
    What do you mean that the "organization of the events was lost?
    Note that events are not really for organizaing photos - they are really just buckets of photos - albums and folders and smart albums are the organizaing tools
    while it may not be necessary one way to "get yoru old organization" back is move the "unorganized" library to the desktop and drag the library from the EHD to the pictures folder and import the 1700 photos correctly
    LN

Maybe you are looking for

  • Email pushing not working correctly for office email - 3 seperate devices/carriers

    We switched email hosts several months ago and since our email pushing has not worked correctly. Our host/IT guy has been very unwilling to help me through this (I get the pleasure of being the in-house IT source) I personally am on AT&T have no prob

  • 2 out of 6 imported flv files pausing on frame 1 when published

    Hi, I have six Scenes, each scene has an imported FLV file. I have a 6 button menu that works fine when clicking from one scene to the other. The problem is is that videos 1 to 4 play fine when I switch to the scene, but FLV files 5 and 6 just stay p

  • Number of Forms sessions not visible

    We have forms running using 9ias (9.0.2). when a user logs in to a Form via his browser, I do not see it in the number of sessions in the enterprise manager under Forms, nor do I see it in CPU USage/Memory Usage. Is this a configuration issue. How ca

  • Still no soft hyphenation

    I was most disappointed to realise, after trying out the trial version, that Pages still has no option for inserting soft hyphens. That lack of features renders Pages virtually useless for those using languages currently unsupported by Pages, such as

  • My password reset requests never come thru to my email

    they are not in my junk or spam folders, nor my blocked senders. the emails just never come thru. its for my icloud password that im trying to reset