www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: voronwe13 on September 03, 2014, 08:59:58 pm

Title: RemoveAllObjects and Polylines
Post by: voronwe13 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().
Title: Re: RemoveAllObjects and Polylines
Post by: EgonOlsen 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)  (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.
Title: Re: RemoveAllObjects and Polylines
Post by: voronwe13 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.
Title: Re: RemoveAllObjects and Polylines
Post by: EgonOlsen on September 03, 2014, 11:40:14 pm
This jar should have it: http://jpct.de/download/beta/jpct_ae.jar (http://jpct.de/download/beta/jpct_ae.jar)
Title: Re: RemoveAllObjects and Polylines
Post by: voronwe13 on September 04, 2014, 03:37:20 pm
Awesome, thanks!