Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 738
    • Issues 738
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 202
    • Merge requests 202
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #17143

Closed
Open
Created Oct 10, 2017 by Adrian Cervera Andes@adrianca88

Bug in vtkCellPickerWithBounds::IntersectDataSetWithLine when t1 != 0.0 || t2 != 1.0

Hi everyone,

I have detected an error while trying to do a pick using a polyData with clipping planes. Vars "t1" and "t2" are recalculated in function "vtkCellPicker::ClipLineWithPlanes". Then, in fuction "vtkCellPicker::IntersectDataSetWithLine" the value of "t" is recalculated when t1 != 0.0 || t2 != 1.0. The error code is

// Stretch tMin out to the original range if (t1 != 0.0 || t2 != 1.0) { t = t1*(1.0 - tMin) + t2*t; }

when the correct calculation (as you can see a few code forward when locator is null) will be:

// Stretch t out to the original range if (t1 != 0.0 || t2 != 1.0) { t = t1*(1.0 - t) + t2*t; }

I have tried this correction and now all is working well. If you need more information it will be a pleasure for me to help you.

I am using 8.0.1 version.

Many thanks. Adrian.

Edited Oct 10, 2017 by Adrian Cervera Andes
Assignee
Assign to
Time tracking