Split Point[] / Flood fill

Discussion in 'Programming General' started by RuneScapeJJ, Aug 3, 2012.

Split Point[] / Flood fill
  1. Unread #1 - Aug 3, 2012 at 9:08 PM
  2. RuneScapeJJ
    Joined:
    Aug 14, 2011
    Posts:
    1,522
    Referrals:
    1
    Sythe Gold:
    0
    Potamus

    RuneScapeJJ Guru
    $25 USD Donor New

    Split Point[] / Flood fill

    EDIT: managed to get it working :)

    Hello,

    I'm looking to split a Point[] or delete other Points. I have a Point[] with all points that aren't black in there. I've colored them Cyan to show it.
    [​IMG]

    I'm looking to split this array, or better said, delete some points in there. I only want the current room to be drawn (which is the most northern room in this situation.

    I've tried some stuff but so far nothing has worked to remove the other points correctly.

    Must do something with the x-distance between the pixels but I haven't figured out what the best way is so far. Or a way, actually.

    Basicly the same as SplitTPAEx but I'm not sure how that works. I know how to use it, but I have no idea how it gets calculated.

    Greetz.

    SplitTPAEx source: https://github.com/MerlijnWajer/Simba/blob/master/Units/MMLCore/tpa.pas#L964
    Also some info here: http://villavu.com/forum/showthread.php?t=87769

    Still looking on a way to do this for every room .
     
< How to integrate RFID reader to vb.net | How do i use new line or tab in sql DB with visual basic 2010 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site