@@ -0,0 +1,853 @@
+from __future__ import absolute_import%0Afrom __future__ import division%0Afrom __future__ import print_function%0A%0A%0A%0A%0A%0A__all__ = %5B%0A    'mesh_to_pointscloud',%0A%5D%0A%0Adef mesh_to_pointscloud(mesh, num_points: int = 10000, return_normals: bool = False):%0A    %22%22%22Convert a mesh to pointclouds%0A%0A    Parameters%0A    ----------%0A    mesh : compas.datastructures.Mesh%0A        The mesh data structure.%0A    num_points : (int) %0A        How many points sampled%0A    return_normals : (bool)%0A        Return normals for the points, if True%0A%0A    Returns%0A    -------%0A    list%0A        A list of coordinates.%0A%0A    Examples%0A    --------%0A%0A%0A    %22%22%22%0A    %0A%0A%0Aif __name__ == '__main__':%0A%0A    import doctest%0A    import compas%0A    from compas.datastructures import Mesh%0A%0A    hypar = Mesh.from_obj(compas.get('hypar.obj'))%0A    mesh = Mesh.from_obj(compas.get('faces.obj'))%0A%0A    doctest.testmod()

initialize a function of mesh_to_pointscloud