AGXDynamics  2.35.0.3
MeshReaderOBJ.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXIO_MESHREADEROBJ_H
18 #define AGXIO_MESHREADEROBJ_H
19 
20 #include <agxIO/MeshReader.h>
21 namespace agxIO
22 {
23 
31  {
32  public:
33 
36 
47  size_t readFile( const agx::String& filename );
48 
58  size_t readString( const agx::String& mesh );
60 
61  protected:
62  virtual ~MeshReaderOBJ() {}
63 
64  };
65 
67 }
68 
69 #endif
agxIO::MeshReaderOBJRef
agx::ref_ptr< MeshReaderOBJ > MeshReaderOBJRef
Definition: MeshReaderOBJ.h:66
agxIO::MeshReaderOBJ
Class for reading a Wavefront OBJ file.
Definition: MeshReaderOBJ.h:30
MeshReader.h
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxIO::readFile
void AGXCORE_EXPORT readFile(agx::String &result, const agx::String &filePath)
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:29
agxIO::MeshReader::readString
virtual size_t readString(const agx::String &mesh, FileExtension::FileType fet)
Read a specified string containing a mesh description in some mesh format defined as a string.
agxIO::MeshReaderOBJ::MeshReaderOBJ
MeshReaderOBJ()
Constructor.
Definition: MeshReaderOBJ.h:35
agxIO::MeshReaderOBJ::~MeshReaderOBJ
virtual ~MeshReaderOBJ()
Definition: MeshReaderOBJ.h:62
agx::AgXString< std::string >
agxIO::MeshReader
Class for reading a mesh object from file and extracting vertices, normals and indices for collision ...
Definition: MeshReader.h:82
agxIO
The agxIO namespace contains classes for reading, writing and finding files.
Definition: Material.h:41