Magnum::Trade::StanfordImporter class

Stanford PLY importer plugin.

Supports little and big endian binary format (ASCII files are not supported), triangle/quad meshes. Only vertex positions are imported.

This plugin depends on the Trade library and is built if WITH_STANFORDIMPORTER is enabled when building Magnum Plugins. To use as a dynamic plugin, you need to load the "StanfordImporter" plugin from MAGNUM_PLUGINS_IMPORTER_DIR. To use as a static plugin or as a dependency of another plugin with CMake, you need to request the StanfordImporter component of the MagnumPlugins package and link to the MagnumPlugins::StanfordImporter target. See Downloading and building plugins, Plugin usage with CMake and Loading and using plugins for more information.

Base classes

class AbstractImporter
Base for importer plugins.

Constructors, destructors, conversion operators

StanfordImporter() explicit
Default constructor.
StanfordImporter(PluginManager::AbstractManager& manager, const std::string& plugin) explicit
Plugin manager constructor.

Private functions

auto doFeatures() const override -> Features virtual
Implementation for features()
auto doIsOpened() const override -> bool virtual
Implementation for isOpened()
void doOpenData(Containers::ArrayView<const char> data) override virtual
Implementation for openData()
void doOpenFile(const std::string& filename) override virtual
Implementation for openFile()
void doClose() override virtual
Implementation for close()
auto doMesh3DCount() const override -> UnsignedInt virtual
Implementation for mesh3DCount()
auto doMesh3D(UnsignedInt id) override -> Containers::Optional<MeshData3D> virtual
Implementation for mesh3D()

Function documentation

void Magnum::Trade::StanfordImporter::doOpenFile(const std::string& filename) override virtual private

Implementation for openFile()

If Feature::OpenData is supported, default implementation opens the file and calls doOpenData() with its contents. It is allowed to call this function from your doOpenFile() implementation.

UnsignedInt Magnum::Trade::StanfordImporter::doMesh3DCount() const override virtual private

Implementation for mesh3DCount()

Default implementation returns 0.