MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0001647 | VTK | (No Category) | public | 2005-03-07 04:09 | 2016-08-12 09:54 |
| Reporter | john platt | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0001647: vtkCutter overwrites cell scalars cutting cells of different dimension | ||||
| Description | I think there is a problem colour mapping cell scalars using vtkCutter on an unstructured grid. Take a grid with 2 cells, a hex and a quad, and cut both cells by a plane. Cutting the hex creates 2 triangles - vtkHexahedron::Contour() calls newCellId = polys->InsertNextCell(3,pts); outCd->CopyData(inCd,cellId,newCellId); creating new triangles with newCellId = 0 & 1. Cutting the quad gives a single line - vtkQuad::Contour() calls newCellId = lines->InsertNextCell(2,pts); outCd->CopyData(inCd,cellId,newCellId); creating a new line with newCellId = 0. Unfortunately, the CopyData() in vtkQuad::Contour() overwrites the cell data for the first triangle. On more complex geometries this causes the renderer to crash because the cell data is not present. I think the calls to copy the cell data need the new cell Id in the aggregate polydata, not the individual lines or polys - something like outCD->CopyData(inCd, cellId, vtkCutter->NumberOfNewCells++); | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://www.vtk.org/Bug/file/5245/Hexahedron.vtk | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-11-30 09:23 | Mathieu Malaterre | Assigned To | Mathieu Malaterre => François Bertel | ||
| 2008-11-30 20:19 | François Bertel | Assigned To | François Bertel => | ||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2016-08-12 09:54 | Kitware Robot | Note Added: 0036775 | |||
| 2016-08-12 09:54 | Kitware Robot | Status | expired => closed | ||
| 2016-08-12 09:54 | Kitware Robot | Resolution | open => moved | ||
| 2016-08-12 09:54 | Kitware Robot | Assigned To | => Kitware Robot | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||