Skip to content
GitLab
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 830
    • Issues 830
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 232
    • Merge requests 232
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #15758
Closed
Open
Issue created Oct 05, 2015 by Kitware Robot@kwrobotOwner

vtkOpenGLPolyDataMapper2D (OpenGL2, VTK 6.3) update problem with TransformCoordinate

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


Assuming we have:

vtkNew<vtkPolyDataMapper2D> m;
vtkNew<vtkCoordinate> coord;
coord->SetCoordinateSystemToWorld();
m->SetTransformCoordinate(coord.GetPointer());

Then use m with a 2D actor to display a polydata. The first render is fine. Now, rotate the view. The polydata rendered by m should rotate along, but it does not.

A simple solution is to call UpdateVBO more often. Of course, it is wasteful, but the old opengl backend did no better, so I think it would be acceptable. For instance, adding

|| (this->TransformCoordinate && this->VBOUpdateTime < viewport->GetMTime())

to the condition governing whether UpdateVBO is called seems to solve the problem in my case.

A better solution would be to not manually transform points and reflect the TransformCoordinate into the opengl matrix, but of course it is more work.

Edited Oct 23, 2018 by Ben Boeckel
Assignee
Assign to
Time tracking