cfMesh utility to convert a surface file to VTK multiblock dataset format, including the patches, feature edges and surface features. More...
Go to the source code of this file.
Functions | |
void | writePointsToVTK (const fileName &fn, const string &, const UList< point > &points) |
Write the supplied pointList in serial vtkPolyData format. More... | |
void | writePointsToVTK (const fileName &fn, const string &title, const UList< point > &points, unallocLabelList &addr) |
Write the supplied addressed pointList in serial vtkPolyData format. More... | |
void | writeEdgesToVTK (const fileName &fn, const string &, const UList< point > &points, const LongList< edge > &edges) |
Write the supplied edgeList in serial vtkPolyData format. More... | |
void | writeEdgesToVTK (const fileName &fn, const string &title, const UList< point > &points, const LongList< edge > &edges, const unallocLabelList &addr) |
Write the supplied edgeList subset in serial vtkPolyData format. More... | |
void | writeFacetsToVTK (const fileName &fn, const string &, const UList< point > &points, const LongList< labelledTri > &facets) |
Write the supplied facet list in serial vtkPolyData format. More... | |
void | writeFacetsToVTK (const fileName &fn, const string &title, const pointField &points, const LongList< labelledTri > &facets, const unallocLabelList &addr) |
int | main (int argc, char *argv[]) |
cfMesh utility to convert a surface file to VTK multiblock dataset format, including the patches, feature edges and surface features.
Original source file FMSToVTK.C
Author Ivor Clifford ivor. clif ford@ psi. ch
Definition in file FMSToVTK.C.
Write the supplied pointList in serial vtkPolyData format.
Definition at line 46 of file FMSToVTK.C.
References xmlTag::addAttribute(), xmlTag::addChild(), Foam::endl(), Foam::Info, and points.
Referenced by main(), and writePointsToVTK().
void writePointsToVTK | ( | const fileName & | fn, |
const string & | title, | ||
const UList< point > & | points, | ||
unallocLabelList & | addr | ||
) |
Write the supplied addressed pointList in serial vtkPolyData format.
Definition at line 77 of file FMSToVTK.C.
References forAll, points, UList::size(), and writePointsToVTK().
void writeEdgesToVTK | ( | const fileName & | fn, |
const string & | , | ||
const UList< point > & | points, | ||
const LongList< edge > & | edges | ||
) |
Write the supplied edgeList in serial vtkPolyData format.
Definition at line 103 of file FMSToVTK.C.
References xmlTag::addAttribute(), xmlTag::addChild(), Foam::endl(), forAll, Foam::Info, points, and LongList< T, Offset >::size().
Referenced by main(), and writeEdgesToVTK().
void writeEdgesToVTK | ( | const fileName & | fn, |
const string & | title, | ||
const UList< point > & | points, | ||
const LongList< edge > & | edges, | ||
const unallocLabelList & | addr | ||
) |
Write the supplied edgeList subset in serial vtkPolyData format.
Definition at line 156 of file FMSToVTK.C.
References DynamicList::append(), forAll, points, UList::size(), and writeEdgesToVTK().
void writeFacetsToVTK | ( | const fileName & | fn, |
const string & | , | ||
const UList< point > & | points, | ||
const LongList< labelledTri > & | facets | ||
) |
Write the supplied facet list in serial vtkPolyData format.
Definition at line 202 of file FMSToVTK.C.
References xmlTag::addAttribute(), xmlTag::addChild(), Foam::endl(), forAll, Foam::Info, points, and LongList< T, Offset >::size().
Referenced by main(), and writeFacetsToVTK().
void writeFacetsToVTK | ( | const fileName & | fn, |
const string & | title, | ||
const pointField & | points, | ||
const LongList< labelledTri > & | facets, | ||
const unallocLabelList & | addr | ||
) |
Write an addressed subset of the supplied facet list in serial vtkPolyData format
Definition at line 272 of file FMSToVTK.C.
References DynamicList::append(), forAll, points, labelledTri::region(), UList::size(), and writeFacetsToVTK().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 325 of file FMSToVTK.C.
References xmlTag::addAttribute(), xmlTag::addChild(), List::append(), args, argList::args(), triSurfFeatureEdges::edgesInSubset(), triSurfFeatureEdges::edgeSubsetIndices(), triSurfFeatureEdges::edgeSubsetName(), Foam::endl(), triSurfFacets::facets(), triSurfFacets::facetsInSubset(), triSurfFacets::facetSubsetIndices(), triSurfFacets::facetSubsetName(), triSurfFeatureEdges::featureEdges(), forAll, Foam::Info, Foam::mkDir(), Foam::name(), argList::noParallel(), patches, triSurfFacets::patches(), points, triSurfPoints::points(), triSurfPoints::pointsInSubset(), triSurfPoints::pointSubsetIndices(), triSurfPoints::pointSubsetName(), argList::validArgs, writeEdgesToVTK(), writeFacetsToVTK(), and writePointsToVTK().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.