mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-12 15:03:06 +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) )
|
||||
{
|
||||
newCellId = output->InsertNextCell(cell->GetCellType(),newCellPts);
|
||||
myElemVTK2ObjIds.push_back(cellId);
|
||||
outputCD->CopyData(cd,cellId,newCellId);
|
||||
if(cell->GetCellType() == VTK_POLYHEDRON) {
|
||||
newCellPts->Reset();
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user