Blender V5.0
usd_attribute_utils.cc File Reference
#include "usd_attribute_utils.hh"
#include "usd_hash_types.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 bke::AttrType blender_type, bool use_color3f_type)
std::optional< bke::AttrTypeblender::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 time, const bke::AttrType 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 bke::AttrType data_type, const pxr::UsdTimeCode time, const pxr::UsdGeomPrimvar &primvar, pxr::UsdUtilsSparseValueWriter &value_writer)