How to cut a bush using a knife?

Hi all,



  I'm a newbie to JME but have gone through the tutorials. I need to make a simulation of cutting a bush using a knife. But don't have a clear idea how to do that? Now I'm doing the Flagrush tutorial but looks like it doesn't have what I want. Can you please tell me how to do that? At least few Ideas how to start?



Thanks in advance. gud luck

That all depends on how your bush is represented.

  • If you have have geometry for branches, you would have to algorithmically modify the mesh to add cuts.
  • If you hive lines for branches, the task of cutting lines is much easier.
  • If your bush is just a texture, then you can make two parts using 2 triangles for each and then adjust the texture coordinates.