Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Share Thread:
Reddit Facebook Twitter
Trying to implement BSP - any advice? (Solved)
01-08-2015, 09:28 PM
Post: #2
RE: Trying to implement BSP - any advice?
I ended up with this:
Code:
walk([], Order, [], Data) -> % Data is {We,SplitPlaneNormal}
    {Order,Data};
walk([], Before, [H|T], Data) ->
    walk(H, Before, T, Data);
walk(A, Before, After, Data) ->
    {F,L1,L2,Data0} = distribute(A, Data),
    walk(L1, [F|Before], [L2|After], Data0).

It seems to flatten the "tree" just the way I need.
Reply


Messages In This Thread
RE: Trying to implement BSP - any advice? - nemyax - 01-08-2015 09:28 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)