Skip to content

[bug]fill_holes: wrong triangle direction #6681

Open
@lslzl3000

Description

@lslzl3000

Checklist

Describe the issue

Using fill_holes in open3d.t.geometry.TriangleMesh is simple and effective, but the result of filled triangles were create with wrong directions, e.g.:
Screenshot 2024-03-07 at 16 15 56
and cannot be fixed by compute_vertex_normals:
Screenshot 2024-03-07 at 16 18 33

is this a bug? can we configure the triangle direction in fill_holes?
Or how to flip the directions of the filled holes?

Steps to reproduce the bug

import open3d as o3d

mesh = o3d.io.read_triangle_mesh('path')
# ....

# try fill holes 
filled = o3d.t.geometry.TriangleMesh.from_legacy(mesh)
final = filled.fill_holes()
final.compute_vertex_normals()    

o3d.visualization.draw(final)

Error message

No response

Expected behavior

No response

Open3D, Python and System information

- Operating system: macOS 10.15
- Python version: Python 3.11.4
- Open3D version: 0.18
- System architecture: apple-silicon
- How did you install Open3D?: pip

Additional information

The similar functions/filter in other software such as MeshLab, MeshFix would fix holes with right normal/direction

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNot a build issue, this is likely a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions