Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
VTK
VTK
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 581
    • Issues 581
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 163
    • Merge Requests 163
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #17097

Closed
Open
Opened Jul 31, 2017 by kuepe-sl@kuepe-sl

Multiple labels with equal coordinates cause spiral-shaped movements of the labels

I am displaying a set of labels using vtkPointSetToLabelHierarchy and vtkLabelPlacementMapper.
Whenever the positions of two labels match exactly, the position of those labels gets screwed up and at least one of them is moving along spiral-shaped ways around the position that was set for the label.
I verified this bug with VTK 7.0, 7.1 and 8.0 on Ubuntu 17.04 (64-bit).

I attached an example program that shows this bug: LabelBug.cpp (needs to be compiled with C++11 support)
It displays two sets of point + label: One is static (0.5, 0, 0), the other one is moving from (0, 0, 0) to (1, 0, 0). As soon as the moving point hits the static point, the label of the static point starts moving. The point stays at its correct position.

The actual modification of the point data seems to happen in vtkLabelHierarchy::ComputeHierarchy.

EDIT: Improved description of example program.

Edited Jul 31, 2017 by kuepe-sl
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: vtk/vtk#17097