From 9c53c9d7e3c1336f6ac92b1d35a27880a63e8603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Vall=C3=A9e?= Date: Thu, 5 Oct 2023 12:16:40 +0200 Subject: [PATCH] Add C++ and python documentation --- cpp/open3d/t/geometry/TriangleMesh.h | 2 ++ cpp/pybind/t/geometry/trianglemesh.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/open3d/t/geometry/TriangleMesh.h b/cpp/open3d/t/geometry/TriangleMesh.h index 9aa1d815743..4b5bbde8f74 100644 --- a/cpp/open3d/t/geometry/TriangleMesh.h +++ b/cpp/open3d/t/geometry/TriangleMesh.h @@ -654,6 +654,8 @@ class TriangleMesh : public Geometry, public DrawableGeometry { /// \return Rotated TriangleMesh TriangleMesh &Rotate(const core::Tensor &R, const core::Tensor ¢er); + /// \brief Remove duplicated triangles from the TriangleMesh + /// \return TriangleMesh without duplicated triangles TriangleMesh &RemoveDuplicatedTriangles(); /// Normalize both triangle normals and vertex normals to length 1. diff --git a/cpp/pybind/t/geometry/trianglemesh.cpp b/cpp/pybind/t/geometry/trianglemesh.cpp index b0438bf82d3..0f90fbca370 100644 --- a/cpp/pybind/t/geometry/trianglemesh.cpp +++ b/cpp/pybind/t/geometry/trianglemesh.cpp @@ -178,7 +178,7 @@ The attributes of the triangle mesh have different levels:: "Rotate points and normals (if exist)."); triangle_mesh.def("remove_duplicated_triangles", &TriangleMesh::RemoveDuplicatedTriangles, - "Remove duplicate triangles from a triangle"); + "Remove duplicated triangles from a triangle"); triangle_mesh.def( "normalize_normals", &TriangleMesh::NormalizeNormals,