This repository was archived by the owner on Oct 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments