Skip to content

Commit

Permalink
refactor(box): Box function call
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigobasilio2022 committed Nov 13, 2023
1 parent f8a9a6d commit 6f8bf81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Rendering/Core/CellPicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ function vtkCellPicker(publicAPI, model) {
// we calculate here the parametric intercept points between the ray and the bounding box, so
// if the application defines for some reason a too large ray length (1e6), it restrict the calculation
// to the vtkVolume actor bounding box
const interceptionObject = vtkBox.intersectWithLine(
const box = vtkBox.newInstance();
const interceptionObject = box.intersectWithLine(
mapper.getBounds(),
p1,
p2
Expand Down

0 comments on commit 6f8bf81

Please sign in to comment.