OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

STLsurfaceFormatRunTime.C

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 \*---------------------------------------------------------------------------*/
00026 
00027 #include "STLsurfaceFormat.H"
00028 
00029 #include "addToRunTimeSelectionTable.H"
00030 #include "addToMemberFunctionSelectionTable.H"
00031 
00032 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00033 
00034 namespace Foam
00035 {
00036 namespace fileFormats
00037 {
00038 
00039 // read MeshedSurface (ascii)
00040 addNamedTemplatedToRunTimeSelectionTable
00041 (
00042     MeshedSurface,
00043     STLsurfaceFormat,
00044     face,
00045     fileExtension,
00046     stl
00047 );
00048 addNamedTemplatedToRunTimeSelectionTable
00049 (
00050     MeshedSurface,
00051     STLsurfaceFormat,
00052     triFace,
00053     fileExtension,
00054     stl
00055 );
00056 
00057 // read MeshedSurface (binary)
00058 addNamedTemplatedToRunTimeSelectionTable
00059 (
00060     MeshedSurface,
00061     STLsurfaceFormat,
00062     face,
00063     fileExtension,
00064     stlb
00065 );
00066 addNamedTemplatedToRunTimeSelectionTable
00067 (
00068     MeshedSurface,
00069     STLsurfaceFormat,
00070     triFace,
00071     fileExtension,
00072     stlb
00073 );
00074 
00075 
00076 // write MeshedSurfaceProxy (ascii)
00077 addNamedTemplatedToMemberFunctionSelectionTable
00078 (
00079     MeshedSurfaceProxy,
00080     STLsurfaceFormat,
00081     face,
00082     write,
00083     fileExtension,
00084     stl
00085 );
00086 addNamedTemplatedToMemberFunctionSelectionTable
00087 (
00088     MeshedSurfaceProxy,
00089     STLsurfaceFormat,
00090     triFace,
00091     write,
00092     fileExtension,
00093     stl
00094 );
00095 
00096 // write MeshedSurfaceProxy (binary)
00097 addNamedTemplatedToMemberFunctionSelectionTable
00098 (
00099     MeshedSurfaceProxy,
00100     STLsurfaceFormat,
00101     face,
00102     write,
00103     fileExtension,
00104     stlb
00105 );
00106 addNamedTemplatedToMemberFunctionSelectionTable
00107 (
00108     MeshedSurfaceProxy,
00109     STLsurfaceFormat,
00110     triFace,
00111     write,
00112     fileExtension,
00113     stlb
00114 );
00115 
00116 // write UnsortedMeshedSurface (ascii)
00117 addNamedTemplatedToMemberFunctionSelectionTable
00118 (
00119     UnsortedMeshedSurface,
00120     STLsurfaceFormat,
00121     face,
00122     write,
00123     fileExtension,
00124     stl
00125 );
00126 addNamedTemplatedToMemberFunctionSelectionTable
00127 (
00128     UnsortedMeshedSurface,
00129     STLsurfaceFormat,
00130     triFace,
00131     write,
00132     fileExtension,
00133     stl
00134 );
00135 
00136 // write UnsortedMeshedSurface (binary)
00137 addNamedTemplatedToMemberFunctionSelectionTable
00138 (
00139     UnsortedMeshedSurface,
00140     STLsurfaceFormat,
00141     face,
00142     write,
00143     fileExtension,
00144     stlb
00145 );
00146 addNamedTemplatedToMemberFunctionSelectionTable
00147 (
00148     UnsortedMeshedSurface,
00149     STLsurfaceFormat,
00150     triFace,
00151     write,
00152     fileExtension,
00153     stlb
00154 );
00155 
00156 }
00157 }
00158 
00159 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd