How to split a mesh?

How to split a mesh in Javascript? For example, how to split a cylinder with a spere as in 3DS Max?

I assume you're referring to boolean operations. Unity doesn't have any functions for this, but you can write your own if you have the knowledge. I don't think it's an easy task though.