mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-12 18:13:07 +05:00
Fix SIGSEGV in the SMESH_ExtractGeometry filter.
This commit is contained in:
parent
b713a5471d
commit
1dc8a6cb2c
@ -239,9 +239,14 @@ int SMESH_ExtractGeometry::RequestData(
|
|||||||
|
|
||||||
if ( npts >= numCellPts || (this->ExtractBoundaryCells && npts > 0) )
|
if ( npts >= numCellPts || (this->ExtractBoundaryCells && npts > 0) )
|
||||||
{
|
{
|
||||||
newCellId = output->InsertNextCell(cell->GetCellType(),newCellPts);
|
if(cell->GetCellType() == VTK_POLYHEDRON) {
|
||||||
myElemVTK2ObjIds.push_back(cellId);
|
newCellPts->Reset();
|
||||||
outputCD->CopyData(cd,cellId,newCellId);
|
vtkUnstructuredGrid::SafeDownCast(input)->GetFaceStream( cellId ,newCellPts );
|
||||||
|
vtkUnstructuredGrid::ConvertFaceStreamPointIds(newCellPts, pointMap);
|
||||||
|
}
|
||||||
|
newCellId = output->InsertNextCell(cell->GetCellType(),newCellPts);
|
||||||
|
myElemVTK2ObjIds.push_back(cellId);
|
||||||
|
outputCD->CopyData(cd,cellId,newCellId);
|
||||||
}
|
}
|
||||||
}//for all cells
|
}//for all cells
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user