Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,961
    • Issues 1,961
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 99
    • Merge requests 99
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaViewParaView
  • ParaViewParaView
  • Issues
  • #20015
Closed
Open
Issue created Jun 22, 2020 by Paul Lafoix@paul.lafoixContributor

vtkSMRrepresentedArrayListDomain duplicates array

bugDuplicationNone

After investigation, it seems that the vtkPVDataInformation returned in vtkSMRepresentedArrayListDomain::GetExtraDataInformation() contains wrong ArrayAttributeType (for example for Tangents, the attribute type can be -1 or 2 (normals)), whereas in the previous dataInformation, the ArrayAttributeType were well defined (8 for Tangents, 2 for Normals, and no -1). As the Array is now considered different, in vtkSMArrayListDomain::Update(), the resulting std::set is filled with duplicates :

vtkPVDataInformation* extraInfo = this->GetExtraDataInformation(); if (extraInfo) { this->ALDInternals->BuildArrayList(set, this, fieldDataSelection, iad, extraInfo); }

What I tried :

  • In vtkSMRepresentedArrayListDomain::GetExtraDataInformation(), return null (this fixes the bug obviously but do not take care of parent proxy)

  • Modify vtkSMArrayListDomainArrayInformation::operator<() to not take care of this->ArrayAttributeType for the ordering (as 2 elements a and b are different if !(a < b) && !(b < a)). Infortunately, the sorting will be impacted.

I guess we should resolve the problem in GetExtraDataInformation, but I can't figure out how

Edited Mar 24, 2021 by Mathieu Westphal
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking