3D Mesh from cloud of points

Maybe you are right, In fact I was trying that at the time you sent your post.
Would you mind to explain the reason of this code in the HTML part of the jsfiddle?

<script>
THREE.Vector3.prototype.equals = function( v, epsilon = Number.EPSILON ) {

    return ( ( Math.abs( v.x - this.x ) < epsilon ) && ( Math.abs( v.y - this.y ) < epsilon ) && ( Math.abs( v.z - this.z ) < epsilon ) );

}
</script>

Without this part the code does not work at all…