mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
vtkUnstructuredReader: corrected prism point ordering
Patch contributed by Mattijs Janssens Resolves bug-report http://bugs.openfoam.org/view.php?id=1885
This commit is contained in:
@ -34,7 +34,7 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(vtkUnstructuredReader, 1); //0);
|
defineTypeNameAndDebug(vtkUnstructuredReader, 1);
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const char*
|
const char*
|
||||||
@ -97,7 +97,6 @@ void Foam::vtkUnstructuredReader::warnUnhandledType
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Split cellTypes into cells, faces and lines
|
|
||||||
void Foam::vtkUnstructuredReader::extractCells
|
void Foam::vtkUnstructuredReader::extractCells
|
||||||
(
|
(
|
||||||
Istream& inFile,
|
Istream& inFile,
|
||||||
@ -302,11 +301,11 @@ void Foam::vtkUnstructuredReader::extractCells
|
|||||||
<< nRead << exit(FatalIOError);
|
<< nRead << exit(FatalIOError);
|
||||||
}
|
}
|
||||||
prismPoints[0] = cellVertData[dataIndex++];
|
prismPoints[0] = cellVertData[dataIndex++];
|
||||||
prismPoints[1] = cellVertData[dataIndex++];
|
|
||||||
prismPoints[2] = cellVertData[dataIndex++];
|
prismPoints[2] = cellVertData[dataIndex++];
|
||||||
|
prismPoints[1] = cellVertData[dataIndex++];
|
||||||
prismPoints[3] = cellVertData[dataIndex++];
|
prismPoints[3] = cellVertData[dataIndex++];
|
||||||
prismPoints[4] = cellVertData[dataIndex++];
|
|
||||||
prismPoints[5] = cellVertData[dataIndex++];
|
prismPoints[5] = cellVertData[dataIndex++];
|
||||||
|
prismPoints[4] = cellVertData[dataIndex++];
|
||||||
cellMap_[celli] = i;
|
cellMap_[celli] = i;
|
||||||
cells_[celli++] = cellShape(prism, prismPoints, true);
|
cells_[celli++] = cellShape(prism, prismPoints, true);
|
||||||
}
|
}
|
||||||
@ -356,7 +355,6 @@ void Foam::vtkUnstructuredReader::extractCells
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Read single field and stores it on the objectRegistry.
|
|
||||||
void Foam::vtkUnstructuredReader::readField
|
void Foam::vtkUnstructuredReader::readField
|
||||||
(
|
(
|
||||||
ISstream& inFile,
|
ISstream& inFile,
|
||||||
@ -434,6 +432,7 @@ void Foam::vtkUnstructuredReader::readField
|
|||||||
);
|
);
|
||||||
// Consume current line.
|
// Consume current line.
|
||||||
inFile.getLine(fieldVals()[0]);
|
inFile.getLine(fieldVals()[0]);
|
||||||
|
|
||||||
// Read without parsing
|
// Read without parsing
|
||||||
forAll(fieldVals(), i)
|
forAll(fieldVals(), i)
|
||||||
{
|
{
|
||||||
@ -457,8 +456,6 @@ void Foam::vtkUnstructuredReader::readField
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Reads fields, stores them on the objectRegistry. Returns a list of
|
|
||||||
// read fields
|
|
||||||
Foam::wordList Foam::vtkUnstructuredReader::readFieldArray
|
Foam::wordList Foam::vtkUnstructuredReader::readFieldArray
|
||||||
(
|
(
|
||||||
ISstream& inFile,
|
ISstream& inFile,
|
||||||
|
|||||||
@ -196,6 +196,7 @@ private:
|
|||||||
labelHashSet& warningGiven
|
labelHashSet& warningGiven
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
|
//- Split cellTypes into cells, faces and lines
|
||||||
void extractCells
|
void extractCells
|
||||||
(
|
(
|
||||||
Istream& inFile,
|
Istream& inFile,
|
||||||
@ -203,6 +204,7 @@ private:
|
|||||||
const labelList& cellVertData
|
const labelList& cellVertData
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Read single field and stores it on the objectRegistry.
|
||||||
void readField
|
void readField
|
||||||
(
|
(
|
||||||
ISstream& inFile,
|
ISstream& inFile,
|
||||||
@ -212,6 +214,8 @@ private:
|
|||||||
const label size
|
const label size
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
|
//- Reads fields, stores them on the objectRegistry. Returns a list of
|
||||||
|
// read fields
|
||||||
wordList readFieldArray
|
wordList readFieldArray
|
||||||
(
|
(
|
||||||
ISstream& inFile,
|
ISstream& inFile,
|
||||||
|
|||||||
Reference in New Issue
Block a user