rename variable
This commit is contained in:
@@ -593,12 +593,12 @@ fn minimum_difference<const ENABLE_FAST_FAIL:bool,T>(
|
||||
// local new_point_p = queryP(initialAxis)
|
||||
// local new_point_q = queryQ(-initialAxis)
|
||||
// local direction, a0, a1, b0, b1, c0, c1, d0, d1
|
||||
let mut direction=mesh.hint_point()+point;
|
||||
let mut initial_axis=mesh.hint_point()+point;
|
||||
// degenerate case
|
||||
if direction==vec3::zero(){
|
||||
direction=choose_any_direction();
|
||||
if initial_axis==vec3::zero(){
|
||||
initial_axis=choose_any_direction();
|
||||
}
|
||||
let last_point=mesh.farthest_vert(direction);
|
||||
let last_point=mesh.farthest_vert(initial_axis);
|
||||
// this represents the 'a' value in the commented code
|
||||
let mut last_pos=mesh.vert(last_point);
|
||||
let Reduced{dir:mut direction,simplex:mut simplex_small}=reduce1([last_point],mesh,point);
|
||||
|
||||
Reference in New Issue
Block a user