isl-org / isl-org/Open3D

How can I make my mesh appear solid from all camera angles?

Open
#5,227 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Discussed in https://github.com/isl-org/Open3D/discussions/5226

Originally posted by **pvasired** June 20, 2022
I am trying to convert a point cloud into a mesh, but I am having trouble getting the orientation of my surface normals correct for what I want.

I want the final shape to look solid from all camera angles rather than becoming transparent as I rotate my camera angle around. An example of what I mean is below.

![badmesh](https://user-images.githubusercontent.com/17258295/174680381-67773326-1d8b-4e33-863b-749afca51111.png)

A snippet of my code is as follows:

```
pcd = o3d.geometry.PointCloud()
pcd.points = o3d.utility.Vector3dVector(points)
pcd.estimate_normals()
pcd.orient_normals_towards_camera_location()
mesh, _ = o3d.geometry.TriangleMesh.create_from_point_cloud_poisson(pcd, depth=3)
mesh.compute_vertex_normals()
mesh.paint_uniform_color(np.array([0,191,255])/255)
```

I would greatly appreciate any help on this!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.