Blender  V3.3
Classes | Typedefs | Enumerations | Functions
usd.h File Reference
#include "DEG_depsgraph.h"

Go to the source code of this file.

Classes

struct  USDExportParams
 
struct  USDImportParams
 

Typedefs

typedef enum eUSDMtlNameCollisionMode eUSDMtlNameCollisionMode
 

Enumerations

enum  eUSDMtlNameCollisionMode { USD_MTL_NAME_COLLISION_MAKE_UNIQUE = 0 , USD_MTL_NAME_COLLISION_REFERENCE_EXISTING = 1 }
 

Functions

bool USD_export (struct bContext *C, const char *filepath, const struct USDExportParams *params, bool as_background_job)
 
bool USD_import (struct bContext *C, const char *filepath, const struct USDImportParams *params, bool as_background_job)
 
int USD_get_version (void)
 
struct CacheArchiveHandleUSD_create_handle (struct Main *bmain, const char *filepath, struct ListBase *object_paths)
 
void USD_free_handle (struct CacheArchiveHandle *handle)
 
void USD_get_transform (struct CacheReader *reader, float r_mat[4][4], float time, float scale)
 
struct MeshUSD_read_mesh (struct CacheReader *reader, struct Object *ob, struct Mesh *existing_mesh, double time, const char **err_str, int read_flag)
 
bool USD_mesh_topology_changed (struct CacheReader *reader, struct Object *ob, struct Mesh *existing_mesh, double time, const char **err_str)
 
struct CacheReaderCacheReader_open_usd_object (struct CacheArchiveHandle *handle, struct CacheReader *reader, struct Object *object, const char *object_path)
 
void USD_CacheReader_incref (struct CacheReader *reader)
 
void USD_CacheReader_free (struct CacheReader *reader)
 

Typedef Documentation

◆ eUSDMtlNameCollisionMode

Enumeration Type Documentation

◆ eUSDMtlNameCollisionMode

Enumerator
USD_MTL_NAME_COLLISION_MAKE_UNIQUE 
USD_MTL_NAME_COLLISION_REFERENCE_EXISTING 

Definition at line 20 of file usd.h.

Function Documentation

◆ CacheReader_open_usd_object()

struct CacheReader* CacheReader_open_usd_object ( struct CacheArchiveHandle handle,
struct CacheReader reader,
struct Object object,
const char *  object_path 
)

◆ USD_CacheReader_free()

void USD_CacheReader_free ( struct CacheReader reader)

◆ USD_CacheReader_incref()

void USD_CacheReader_incref ( struct CacheReader reader)

Definition at line 492 of file usd_capi_import.cc.

References blender::io::usd::USDPrimReader::incref().

◆ USD_create_handle()

struct CacheArchiveHandle* USD_create_handle ( struct Main bmain,
const char *  filepath,
struct ListBase object_paths 
)

◆ USD_export()

bool USD_export ( struct bContext C,
const char *  filepath,
const struct USDExportParams params,
bool  as_background_job 
)

◆ USD_free_handle()

void USD_free_handle ( struct CacheArchiveHandle handle)

Definition at line 569 of file usd_capi_import.cc.

References blender::io::usd::stage_reader_from_handle().

Referenced by cachefile_handle_free().

◆ USD_get_transform()

void USD_get_transform ( struct CacheReader reader,
float  r_mat[4][4],
float  time,
float  scale 
)

◆ USD_get_version()

int USD_get_version ( void  )

Definition at line 234 of file usd_capi_export.cc.

Referenced by make_usd_info().

◆ USD_import()

bool USD_import ( struct bContext C,
const char *  filepath,
const struct USDImportParams params,
bool  as_background_job 
)

◆ USD_mesh_topology_changed()

bool USD_mesh_topology_changed ( struct CacheReader reader,
struct Object ob,
struct Mesh existing_mesh,
double  time,
const char **  err_str 
)

◆ USD_read_mesh()

struct Mesh* USD_read_mesh ( struct CacheReader reader,
struct Object ob,
struct Mesh existing_mesh,
double  time,
const char **  err_str,
int  read_flag 
)

Definition at line 464 of file usd_capi_import.cc.

References get_usd_reader(), blender::io::usd::USDGeomReader::read_mesh(), and time.

Referenced by modifyMesh().