Blender
V3.3
|
#include "usd_reader_mesh.h"
#include "usd_reader_material.h"
#include "BKE_customdata.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_mesh.h"
#include "BKE_object.h"
#include "BLI_math.h"
#include "BLI_math_geom.h"
#include "BLI_math_vec_types.hh"
#include "BLI_span.hh"
#include "BLI_string.h"
#include "DNA_customdata_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "MEM_guardedalloc.h"
#include <pxr/base/vt/array.h>
#include <pxr/base/vt/types.h>
#include <pxr/base/vt/value.h>
#include <pxr/usd/sdf/types.h>
#include <pxr/usd/usdGeom/mesh.h>
#include <pxr/usd/usdGeom/subset.h>
#include <pxr/usd/usdShade/materialBindingAPI.h>
#include <iostream>
Go to the source code of this file.
Namespaces | |
usdtokens | |
utils | |
blender | |
blender::io | |
blender::io::usd | |
Functions | |
static const pxr::TfToken | usdtokens::st ("st", pxr::TfToken::Immortal) |
static const pxr::TfToken | usdtokens::UVMap ("UVMap", pxr::TfToken::Immortal) |
static const pxr::TfToken | usdtokens::Cd ("Cd", pxr::TfToken::Immortal) |
static const pxr::TfToken | usdtokens::displayColor ("displayColor", pxr::TfToken::Immortal) |
static const pxr::TfToken | usdtokens::normalsPrimvar ("normals", pxr::TfToken::Immortal) |
static void | utils::build_mat_map (const Main *bmain, std::map< std::string, Material * > *r_mat_map) |
static pxr::UsdShadeMaterial | utils::compute_bound_material (const pxr::UsdPrim &prim) |
static Material * | utils::find_existing_material (const pxr::SdfPath &usd_mat_path, const USDImportParams ¶ms, const std::map< std::string, Material * > &mat_map, const std::map< std::string, std::string > &usd_path_to_mat_name) |
static void | utils::assign_materials (Main *bmain, Object *ob, const std::map< pxr::SdfPath, int > &mat_index_map, const USDImportParams ¶ms, pxr::UsdStageRefPtr stage, std::map< std::string, Material * > &mat_name_to_mat, std::map< std::string, std::string > &usd_path_to_mat_name) |
static void * | add_customdata_cb (Mesh *mesh, const char *name, const int data_type) |
Definition at line 178 of file usd_reader_mesh.cc.
References CD_DEFAULT, CD_MLOOPUV, CD_PROP_BYTE_COLOR, CustomData_add_layer_named(), CustomData_get_layer_named(), ELEM, Mesh::ldata, mesh, and Mesh::totloop.
Referenced by blender::io::usd::USDMeshReader::read_mesh().