1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 Foam::fileFormats::OBJedgeFormat
28 Provide a means of reading/writing Alias/Wavefront OBJ format.
30 Does not handle negative vertex indices.
35 \*---------------------------------------------------------------------------*/
37 #ifndef OBJedgeFormat_H
38 #define OBJedgeFormat_H
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 /*---------------------------------------------------------------------------*\
53 Class OBJedgeFormat Declaration
54 \*---------------------------------------------------------------------------*/
60 // Private Member Functions
62 //- Disallow default bitwise copy construct
63 OBJedgeFormat(const OBJedgeFormat&);
65 //- Disallow default bitwise assignment
66 void operator=(const OBJedgeFormat&);
73 //- Construct from file name
74 OBJedgeFormat(const fileName&);
79 //- Read file and return surface
80 static autoPtr<edgeMesh> New(const fileName& name)
82 return autoPtr<edgeMesh>
84 new OBJedgeFormat(name)
90 virtual ~OBJedgeFormat()
96 //- Write surface mesh components by proxy
97 static void write(const fileName&, const edgeMesh&);
100 virtual bool read(const fileName&);
102 //- Write object file
103 virtual void write(const fileName& name) const
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 } // End namespace fileFormats
113 } // End namespace Foam
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 // ************************************************************************* //