BUG: setSet: use of one-argument constructor. Fixes #566.

This commit is contained in:
mattijs
2017-08-10 18:41:22 +01:00
parent 6d8a09fd63
commit 59b70b04d5
5 changed files with 8 additions and 10 deletions

View File

@ -85,7 +85,7 @@ void writeVTK
vtk::writeFaceSet vtk::writeFaceSet
( (
mesh, mesh,
currentSet, dynamicCast<const faceSet&>(currentSet),
mesh.time().path()/vtkBaseName, mesh.time().path()/vtkBaseName,
vtk::formatType::LEGACY_BINARY vtk::formatType::LEGACY_BINARY
); );
@ -96,7 +96,7 @@ void writeVTK
vtk::writeCellSetFaces vtk::writeCellSetFaces
( (
mesh, mesh,
currentSet, dynamicCast<const cellSet&>(currentSet),
mesh.time().path()/vtkBaseName, mesh.time().path()/vtkBaseName,
vtk::formatType::LEGACY_BINARY vtk::formatType::LEGACY_BINARY
); );
@ -106,7 +106,7 @@ void writeVTK
vtk::writePointSet vtk::writePointSet
( (
mesh, mesh,
currentSet, dynamicCast<const pointSet&>(currentSet),
mesh.time().path()/vtkBaseName, mesh.time().path()/vtkBaseName,
vtk::formatType::LEGACY_BINARY vtk::formatType::LEGACY_BINARY
); );

View File

@ -26,7 +26,7 @@ InNamespace
Description Description
Write faceSet to vtk polydata file. Write faceSet to vtk polydata file.
The data are the original point ids. The data are the mesh face ids.
SourceFiles SourceFiles
foamVtkWritePointSet.C foamVtkWritePointSet.C
@ -49,7 +49,7 @@ class fileName;
namespace vtk namespace vtk
{ {
//- Write pointSet to vtk polydata file. //- Write faceSet to vtk polydata file.
// Only one data which is original pointID. // Only one data which is original pointID.
void writeFaceSet void writeFaceSet
( (

View File

@ -65,7 +65,7 @@ public:
// Constructors // Constructors
//- Construct from IOobject. No checking. //- Construct from IOobject. No checking.
cellSet(const IOobject& obj); explicit cellSet(const IOobject& obj);
//- Construct from polyMesh and name. Checks for valid cell ids. //- Construct from polyMesh and name. Checks for valid cell ids.
cellSet cellSet

View File

@ -59,9 +59,8 @@ public:
// Constructors // Constructors
//- Construct from IOobject //- Construct from IOobject
faceSet(const IOobject& obj); explicit faceSet(const IOobject& obj);
//- Construct from objectRegistry and name //- Construct from objectRegistry and name
faceSet faceSet

View File

@ -60,9 +60,8 @@ public:
// Constructors // Constructors
//- Construct from IOobject //- Construct from IOobject
pointSet(const IOobject& obj); explicit pointSet(const IOobject& obj);
//- Construct from objectRegistry and name //- Construct from objectRegistry and name
pointSet pointSet