Skip to content

Commit d39867a

Browse files
committed
epa: remove useless mutables
1 parent f43ba26 commit d39867a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

include/hpp/fcl/narrowphase/narrowphase.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -487,22 +487,22 @@ struct HPP_FCL_DLLAPI GJKSolver {
487487
bool operator!=(const GJKSolver& other) const { return !(*this == other); }
488488

489489
/// @brief maximum number of simplex face used in EPA algorithm
490-
mutable size_t epa_max_face_num;
490+
size_t epa_max_face_num;
491491

492492
/// @brief maximum number of simplex vertex used in EPA algorithm
493-
mutable size_t epa_max_vertex_num;
493+
size_t epa_max_vertex_num;
494494

495495
/// @brief maximum number of iterations used for EPA iterations
496-
mutable size_t epa_max_iterations;
496+
size_t epa_max_iterations;
497497

498498
/// @brief the threshold used in EPA to stop iteration
499-
mutable FCL_REAL epa_tolerance;
499+
FCL_REAL epa_tolerance;
500500

501501
/// @brief the threshold used in GJK to stop iteration
502-
mutable FCL_REAL gjk_tolerance;
502+
FCL_REAL gjk_tolerance;
503503

504504
/// @brief maximum number of iterations used for GJK iterations
505-
mutable size_t gjk_max_iterations;
505+
size_t gjk_max_iterations;
506506

507507
/// @brief Whether smart guess can be provided
508508
/// @Deprecated Use gjk_initial_guess instead
@@ -531,7 +531,7 @@ struct HPP_FCL_DLLAPI GJKSolver {
531531
/// processes to an early stopping.
532532
/// The two witness points are incorrect, but with the guaranty that
533533
/// the two shapes have a distance greather than distance_upper_bound.
534-
mutable FCL_REAL distance_upper_bound;
534+
FCL_REAL distance_upper_bound;
535535

536536
public:
537537
EIGEN_MAKE_ALIGNED_OPERATOR_NEW

src/narrowphase/gjk.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ void EPA::initialize() {
14651465
sv_store = new SimplexV[max_vertex_num];
14661466
fc_store = new SimplexF[max_face_num];
14671467
status = Failed;
1468-
normal = Vec3f(0, 0, 0);
1468+
normal.setZero();
14691469
depth = 0;
14701470
nextsv = 0;
14711471
for (size_t i = 0; i < max_face_num; ++i)

0 commit comments

Comments
 (0)