Author Topic: RemoveAllObjects and Polylines  (Read 1066 times)

Offline voronwe13

  • byte
  • *
  • Posts: 15
    • View Profile
RemoveAllObjects and Polylines
« on: September 03, 2014, 08:59:58 pm »
Is there a quick way to remove all polylines from a world?  World.removeAllObjects() doesn't appear to remove polylines, nor even World.removeAll().

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12011
    • View Profile
    • http://www.jpct.net
Re: RemoveAllObjects and Polylines
« Reply #1 on: September 03, 2014, 09:25:33 pm »
There's no such thing ATM. You could use http://www.jpct.net/jpct-ae/doc/com/threed/jpct/World.html#removePolyline(com.threed.jpct.Polyline) on all Polylines. If that's isn't feasible, i can add the requested method.

Offline voronwe13

  • byte
  • *
  • Posts: 15
    • View Profile
Re: RemoveAllObjects and Polylines
« Reply #2 on: September 03, 2014, 10:12:00 pm »
Right now I am able to go through and remove them one by one, so it's not a huge deal.  A method for removing them (and/or at least having world.removeAll() remove them) would be a nice feature, if it's not difficult to add.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12011
    • View Profile
    • http://www.jpct.net
Re: RemoveAllObjects and Polylines
« Reply #3 on: September 03, 2014, 11:40:14 pm »

Offline voronwe13

  • byte
  • *
  • Posts: 15
    • View Profile
Re: RemoveAllObjects and Polylines
« Reply #4 on: September 04, 2014, 03:37:20 pm »
Awesome, thanks!