Skip to content

Commit 17ff2eb

Browse files
committed
Update
1 parent 0365640 commit 17ff2eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/include/detray/navigation/direct_navigator.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,14 @@ class direct_navigator {
320320
update_intersection(track, navigation, cfg, ctx);
321321
}
322322

323+
// Return true to reset the step size
323324
return true;
324325
} else {
325326
// Otherwise the track is moving towards a surface
326327
navigation.m_status = navigation::status::e_towards_object;
327328

328-
return true;
329+
// Return false to scale the step size with RK4
330+
return false;
329331
}
330332
}
331333

@@ -344,10 +346,8 @@ class direct_navigator {
344346
static_cast<scalar_type>(navigation.direction()) *
345347
track.dir()),
346348
navigation.target(), det.transform_store(), ctx,
347-
sf.is_portal() ? darray<scalar_type, 2>{cfg.min_mask_tolerance,
348-
cfg.max_mask_tolerance}
349-
: darray<scalar_type, 2>{cfg.min_mask_tolerance,
350-
cfg.max_mask_tolerance},
349+
darray<scalar_type, 2>{cfg.min_mask_tolerance,
350+
cfg.max_mask_tolerance},
351351
static_cast<scalar_type>(cfg.mask_tolerance_scalor),
352352
static_cast<scalar_type>(cfg.overstep_tolerance));
353353

0 commit comments

Comments
 (0)