title: Cutting mesh in realtime
body: <p>I want to slice a mesh object into at least five parts. I've done some research and some people on here have cloned objects when sliced and just instantiate two objects from a single slice?</p>
  
  <p>I'm pretty new to Unity and C#. So any beginner tutorials on where to start or where I can read for learning how to cut mesh would be nice. Like what functions/methods should I be looking into? What methodology is behind cutting mesh?</p>
  
  <p>From my understanding, I haven't seen any tutorial or asset that actually cuts triangular mesh? If there is, how is it done? What is the logic behind it? I guess I need help understanding the logic behind it and how to get started or what I should look into?</p>
  
  <p>Cut mesh in realtime I mean. </p>
  
  <p>EDIT:</p>
  
  <p>Attempt at understanding and playing around with code: </p>
  
  <p>I used the fake slicer 3.0 (<a href="http://unitycoder.com/blog/2011/08/09/fake-mesh-slicer-v3-0/" rel="noreferrer">http://unitycoder.com/blog/2011/08/09/fake-mesh-slicer-v3-0/</a>) and included in the sample, they have a capsule that the slicer works on. </p>
  
  <p>If I added a cube or another capsule with rigidbodies properties and collider property, the slicer (aka plane) only clones the object and doesn't slice it off. Why is that? How can I manipulate the code above to work for all kinds of objects? </p>
  
  <p>I get this console error and I don't know what it means: </p>
  
  <pre><code>UnasssignedReferenceException: The variable cutplane of 'Slice_mesh3_js' has not been assigned. You probably need to assign the cutplane variable of the Slice_mesh3_js script in the inspector. 
  </code></pre>