Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Loads an STL file. More...
#include <ioSTL.hpp>
Public Member Functions | |
ref< ResourceDatabase > | loadSTL (VirtualFile *file) |
Loads a STL file. More... | |
ref< ResourceDatabase > | loadAscii (VirtualFile *file) |
ref< ResourceDatabase > | loadBinary (VirtualFile *file) |
ref< ResourceDatabase > STLLoader::loadAscii | ( | VirtualFile * | file | ) |
Definition at line 116 of file ioSTL.cpp.
References vl::Geometry::drawCalls(), vl::ref< T >::get(), NULL, vl::PT_TRIANGLES, vl::ArrayAbstract::ptr(), vl::TextStream::readLine(), vl::Array< T_VectorType, T_Scalar, T_GL_Size, T_GL_Type >::resize(), vl::ResourceDatabase::resources(), vl::BufferedStream< Element_Type, Chunk_Size >::setInputFile(), vl::Vector3< T_Scalar >::x(), vl::Vector3< T_Scalar >::y(), and vl::Vector3< T_Scalar >::z().
Referenced by loadSTL().
ref< ResourceDatabase > STLLoader::loadBinary | ( | VirtualFile * | file | ) |
Definition at line 66 of file ioSTL.cpp.
References vl::Array< T_VectorType, T_Scalar, T_GL_Size, T_GL_Type >::at(), vl::Geometry::drawCalls(), vl::ref< T >::get(), NULL, vl::PT_TRIANGLES, vl::VirtualFile::read(), vl::VirtualFile::readUInt32(), vl::Array< T_VectorType, T_Scalar, T_GL_Size, T_GL_Type >::resize(), vl::ResourceDatabase::resources(), vl::Geometry::setNormalArray(), and vl::Geometry::setVertexArray().
Referenced by loadSTL().
ref< ResourceDatabase > STLLoader::loadSTL | ( | VirtualFile * | file | ) |
Loads a STL file.
Definition at line 172 of file ioSTL.cpp.
References vl::VirtualFile::close(), loadAscii(), loadBinary(), vl::OM_ReadOnly, vl::VirtualFile::open(), vl::VirtualFile::read(), and vl::VirtualFile::seekSet().
Referenced by vl::loadSTL().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:54.
© Copyright Michele Bosi. All rights reserved.