Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
fix in oct search
Browse files Browse the repository at this point in the history
  • Loading branch information
jtorde committed Dec 2, 2021
1 parent 7cbe464 commit 567bf9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mader/src/octopus_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ void OctopusSearch::expandAndAddToQueue(Node& current, double constraint_xL, dou

neighbor.qi = (knots_(i + p_ + 1) - knots_(i + 1)) * vi / (1.0 * p_) + current.qi;

if ((fabs(vi.x() < 1e-5) && fabs(vi.y() < 1e-5) && fabs(vi.z() < 1e-5)) || // Not wanna use v=[0,0,0]
if (vi.norm() < 1e-5 || // Not wanna use v=[0,0,0]
neighbor.qi.x() > x_max_ || neighbor.qi.x() < x_min_ || /// Outside the limits
neighbor.qi.y() > y_max_ || neighbor.qi.y() < y_min_ || /// Outside the limits
neighbor.qi.z() > z_max_ || neighbor.qi.z() < z_min_ || /// Outside the limits
Expand Down

0 comments on commit 567bf9a

Please sign in to comment.