title: How to clean up the mesh in Open3D?
body: <p>I created surface mesh from 3D cloud points using Open3D library in python. I have a lot of cases where the domains are similar to each other. <strong>For most of the cases, the open3D does a fine job in creating a closed surface mesh, but for few cases it creates some outlier meshes from the domain.</strong>
  Below is the code for surface mesh from Open3D.</p>
  <pre><code>pcd = o3d.io.read_point_cloud('./mesh.xyz')
  pcd.estimate_normals()
  
  # to obtain a consistent normal orientation
  pcd.orient_normals_towards_camera_location(pcd.get_center())
  pcd.normals = o3d.utility.Vector3dVector( - np.asarray(pcd.normals))
  
  # surface reconstruction using Poisson reconstruction
  mesh, _ = o3d.geometry.TriangleMesh.create_from_point_cloud_poisson(pcd, depth=9)
  
  o3d.io.write_triangle_mesh('mesh.stl', mesh)
  </code></pre>
  <p><strong>I have attached pics of the outlier mesh obtained from the domain. How to clean those mesh from Open3D?</strong>. This occurs for only few of the test cases. We can easily see in the outlier image how the mesh is outside the domain.</p>
  <p><a href="https://i.stack.imgur.com/TFK38.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TFK38.png" alt="Complete mesh after completion" /></a></p>
  <p><a href="https://i.stack.imgur.com/7W39J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7W39J.png" alt="Outlier when the mesh is zoomed in" /></a></p>
  <p>Any leads will be appreciated.</p>
  <p>Regards,
  Sunag R A.</p>