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