Delete a 3D batch mesh (Obj)?


I am stuck again, this time trying to figure out how to completely an Batch Obj mesh. Closest thing I found is cinder::geom::Remove, but not sure how to use that on a Batch. Is this possible?


Are you just trying to delete the Batch / mesh and it’s resources? Most of these resources are shared_ptrs so if they go out of scope or are reset to a new object the resources will get deleted. I think geom::Remove is more about building/modifying mesh geometry attributes.

1 Like

Sorry about the delay, just saw this. Yeah I figured out it doesn’t require a solid delete function, since I can control its presence by simply controlling the rendering loop; i.e. if i want to delete the mesh, a conditional can be added to prevent the mesh being rendered