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 733
    • Issues 733
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 203
    • Merge requests 203
  • 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
  • #18176

Closed
Open
Created Apr 19, 2021 by rockydut@rockydut

Bug report for vtkRemoveDuplicatePolys

There is a bug in class vtkRemoveDuplicatePolys. In the vtkRemoveDuplicatePolys.cxx file at line 75, it new a new vtkIdList, i.e. vtkIdList* polyPoints = vtkIdList::New(); but at the end of this file, if there is not duplicated polys, the variable "ndup" is zero, then the variable "polyPoints" will not be deleted. Just change it to:

if (ndup)
  {
    vtkDebugMacro(<< "vtkRemoveDuplicatePolys : " << ndup
                  << " duplicate polys (multiple instances of a polygon) have been"
                  << " removed." << endl);

    //polyPoints->Delete();
    output->Squeeze();
  }
  polyPoints->Delete();
Edited Apr 20, 2021 by Mathieu Westphal
Assignee
Assign to
Time tracking