Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 557dbb0

Browse files
committed
fix compile error
1 parent 1ec6e77 commit 557dbb0

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/ipc/collision_mesh.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,6 @@ class CollisionMesh {
5555
full_rest_positions, edges, faces);
5656
}
5757

58-
Eigen::Vector3d face_normal(const long f) const
59-
{
60-
Eigen::Vector3d a = rest_positions().row(faces()(f, 1))
61-
- rest_positions().row(faces()(f, 0));
62-
Eigen::Vector3d b = rest_positions().row(faces()(f, 2))
63-
- rest_positions().row(faces()(f, 0));
64-
return (a).cross(b);
65-
}
66-
6758
// The following functions are used to initialize optional data structures.
6859

6960
/// @brief Initialize vertex-vertex and edge-vertex adjacencies.

src/ipc/utils/eigen_ext.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,12 @@ static const Eigen::IOFormat OBJ_VERTEX_FORMAT = Eigen::IOFormat(
189189

190190
} // namespace ipc
191191

192+
// The current head of the Eigen library moved all into the indexing namespace.
193+
#if EIGEN_VERSION_AT_LEAST(3, 4, 90)
194+
namespace Eigen {
195+
// Move all back to the root namespace for compatibility with older versions
196+
static const Eigen::internal::all_t all = indexing::all;
197+
} // namespace Eigen
198+
#endif
199+
192200
#include "eigen_ext.tpp"

0 commit comments

Comments
 (0)