Skip to content

[Perf] Changing actor visibility should not compute actor matrix #3378

@finetjul

Description

@finetjul

High-level description

vtkActor.onModified triggers a computeMatrix(). This is useless:

  • when only the actor visibility is changed
  • because there is already a mechanism that computes the matrix each time it is accessed

Steps to reproduce

call vtkActor.setVisibility() and see that computeMatrix() is recomputing the matrix.

Detailed Current Behavior

too slow

Environment

master

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions