vtkPV?FoamMeshVolume: Corrected conversion of tetWedge to VTK_WEDGE
Thanks to Bruno Santos for analysing and fixing this Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1633
This commit is contained in:
parent
934502ee08
commit
e199a0fbf6
2 changed files with 6 additions and 6 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -221,14 +221,14 @@ vtkUnstructuredGrid* Foam::vtkPV3Foam::volumeVTKMesh
|
||||||
}
|
}
|
||||||
else if (cellModel == tetWedge)
|
else if (cellModel == tetWedge)
|
||||||
{
|
{
|
||||||
// Treat as squeezed prism
|
// Treat as squeezed prism (VTK_WEDGE)
|
||||||
|
|
||||||
nodeIds[0] = cellShape[0];
|
nodeIds[0] = cellShape[0];
|
||||||
nodeIds[1] = cellShape[2];
|
nodeIds[1] = cellShape[2];
|
||||||
nodeIds[2] = cellShape[1];
|
nodeIds[2] = cellShape[1];
|
||||||
nodeIds[3] = cellShape[3];
|
nodeIds[3] = cellShape[3];
|
||||||
nodeIds[4] = cellShape[4];
|
nodeIds[4] = cellShape[4];
|
||||||
nodeIds[5] = cellShape[4];
|
nodeIds[5] = cellShape[3];
|
||||||
|
|
||||||
vtkmesh->InsertNextCell
|
vtkmesh->InsertNextCell
|
||||||
(
|
(
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
|
|
@ -221,14 +221,14 @@ vtkUnstructuredGrid* Foam::vtkPV4Foam::volumeVTKMesh
|
||||||
}
|
}
|
||||||
else if (cellModel == tetWedge)
|
else if (cellModel == tetWedge)
|
||||||
{
|
{
|
||||||
// Treat as squeezed prism
|
// Treat as squeezed prism (VTK_WEDGE)
|
||||||
|
|
||||||
nodeIds[0] = cellShape[0];
|
nodeIds[0] = cellShape[0];
|
||||||
nodeIds[1] = cellShape[2];
|
nodeIds[1] = cellShape[2];
|
||||||
nodeIds[2] = cellShape[1];
|
nodeIds[2] = cellShape[1];
|
||||||
nodeIds[3] = cellShape[3];
|
nodeIds[3] = cellShape[3];
|
||||||
nodeIds[4] = cellShape[4];
|
nodeIds[4] = cellShape[4];
|
||||||
nodeIds[5] = cellShape[4];
|
nodeIds[5] = cellShape[3];
|
||||||
|
|
||||||
vtkmesh->InsertNextCell
|
vtkmesh->InsertNextCell
|
||||||
(
|
(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue