Marching cubes in Unity?

How can I implement the marching cubes algorithm in Unity? Or is there a better solution for smoothing?
Any code/examples/documents are helpful, preferably JS.

There is a script written by Brian R. Cowan MetaBalls. Based on this Marching Cubes algorithm.

as you know marching cubes is an algorithm for generating polygonal meshes. you should first implement the algorithm which i think you might not be able to find here in the community easily and then add those polygons to a vertext array and turn it into a mesh.
basically you should create a mesh of type Mesh class in unity and then add the generated vertecies to it. then create a trianglestrip from them and render them easily.
there are tutorials for procedural mesh generation in unity’s example projects and other websites that might be helpful.

finding a code in c++ for marchingcubes is not that hard and turning the code into C# or js is easy.