Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: isl-org/Open3D
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6f2dd07e641200ff4db16d206f666ed69bf2f652
Choose a base ref
..
head repository: isl-org/Open3D
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b008cb7eb63b2df765103152166a7a30bb8718d4
Choose a head ref
Showing with 3 additions and 1 deletion.
  1. +3 −1 cpp/open3d/t/geometry/TriangleMesh.cpp
4 changes: 3 additions & 1 deletion cpp/open3d/t/geometry/TriangleMesh.cpp
Original file line number Diff line number Diff line change
@@ -309,7 +309,9 @@ TriangleMesh &TriangleMesh::ComputeTriangleAreas() {
}

if (!HasTriangleIndices()) {
SetTriangleAttr("areas", core::Tensor::Empty({0}, GetVertexPositions().GetDtype(), GetDevice());
SetTriangleAttr("areas", core::Tensor::Empty(
{0}, GetVertexPositions().GetDtype(),
GetDevice()));
utility::LogWarning("TriangleMesh has no triangle indices.");
return *this;
}