Blender V4.3
usd_attribute_utils.cc File Reference
#include "usd_attribute_utils.hh"
#include "usd_hash_types.hh"
#include "BLI_generic_span.hh"
#include "BLI_map.hh"
#include "BLI_offset_indices.hh"
#include "BLI_sys_types.h"
#include "BKE_attribute.hh"
#include "DNA_customdata_types.h"
#include <pxr/usd/sdf/valueTypeName.h>
#include <optional>

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::io
 
namespace  blender::io::usd
 

Functions

std::optional< pxr::SdfValueTypeName > blender::io::usd::convert_blender_type_to_usd (const eCustomDataType blender_type, bool use_color3f_type)
 
std::optional< eCustomDataTypeblender::io::usd::convert_usd_type_to_blender (const pxr::SdfValueTypeName usd_type)
 
void blender::io::usd::copy_primvar_to_blender_attribute (const pxr::UsdGeomPrimvar &primvar, const pxr::UsdTimeCode timecode, const eCustomDataType data_type, const bke::AttrDomain domain, const OffsetIndices< int > face_indices, bke::MutableAttributeAccessor attributes)
 
void blender::io::usd::copy_blender_attribute_to_primvar (const GVArray &attribute, const eCustomDataType data_type, const pxr::UsdTimeCode timecode, const pxr::UsdGeomPrimvar &primvar, pxr::UsdUtilsSparseValueWriter &value_writer)