ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
FileASSIMP.cpp File Reference
#include <Logging.h>
#include <assimp/GltfMaterial.h>
#include <assimp/material.h>
#include <assimp/postprocess.h>
#include <assimp/scene.h>
#include <assimp/Exporter.hpp>
#include <assimp/Importer.hpp>
#include <assimp/ProgressHandler.hpp>
#include <unordered_map>
#include <vector>
#include "cloudViewer/core/ParallelFor.h"
#include "cloudViewer/core/TensorFunction.h"
#include "cloudViewer/t/io/ImageIO.h"
#include "cloudViewer/t/io/TriangleMeshIO.h"
Include dependency graph for FileASSIMP.cpp:

Go to the source code of this file.

Namespaces

 cloudViewer
 Generic file read and write utility for python interface.
 
 cloudViewer::t
 
 cloudViewer::t::io
 

Macros

#define AI_MATKEY_CLEARCOAT_THICKNESS   "$mat.clearcoatthickness", 0, 0
 
#define AI_MATKEY_CLEARCOAT_ROUGHNESS   "$mat.clearcoatroughness", 0, 0
 
#define AI_MATKEY_SHEEN   "$mat.sheen", 0, 0
 
#define AI_MATKEY_ANISOTROPY   "$mat.anisotropy", 0, 0
 

Functions

bool cloudViewer::t::io::ReadTriangleMeshUsingASSIMP (const std::string &filename, geometry::TriangleMesh &mesh, const cloudViewer::io::ReadTriangleMeshOptions &params)
 
static void cloudViewer::t::io::SetTextureMaterialProperty (aiMaterial *mat, aiScene *scene, int texture_idx, aiTextureType tt, t::geometry::Image &img)
 
bool cloudViewer::t::io::WriteTriangleMeshUsingASSIMP (const std::string &filename, const geometry::TriangleMesh &mesh, const bool write_ascii, const bool compressed, const bool write_vertex_normals, const bool write_vertex_colors, const bool write_triangle_uvs, const bool print_progress)
 

Variables

const unsigned int cloudViewer::t::io::kPostProcessFlags_compulsory
 
const unsigned int cloudViewer::t::io::kPostProcessFlags_fast
 

Macro Definition Documentation

◆ AI_MATKEY_ANISOTROPY

#define AI_MATKEY_ANISOTROPY   "$mat.anisotropy", 0, 0

Definition at line 28 of file FileASSIMP.cpp.

◆ AI_MATKEY_CLEARCOAT_ROUGHNESS

#define AI_MATKEY_CLEARCOAT_ROUGHNESS   "$mat.clearcoatroughness", 0, 0

Definition at line 26 of file FileASSIMP.cpp.

◆ AI_MATKEY_CLEARCOAT_THICKNESS

#define AI_MATKEY_CLEARCOAT_THICKNESS   "$mat.clearcoatthickness", 0, 0

Definition at line 25 of file FileASSIMP.cpp.

◆ AI_MATKEY_SHEEN

#define AI_MATKEY_SHEEN   "$mat.sheen", 0, 0

Definition at line 27 of file FileASSIMP.cpp.