Blender  V3.3
Namespaces | Functions
usd_reader_mesh.cc File Reference
#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 Materialutils::find_existing_material (const pxr::SdfPath &usd_mat_path, const USDImportParams &params, 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 &params, pxr::UsdStageRefPtr stage, std::map< std::string, Material * > &mat_name_to_mat, std::map< std::string, std::string > &usd_path_to_mat_name)
 
static voidadd_customdata_cb (Mesh *mesh, const char *name, const int data_type)
 

Function Documentation

◆ add_customdata_cb()

static void* add_customdata_cb ( Mesh mesh,
const char *  name,
const int  data_type 
)
static