Blender V5.0
usd_writer_pointinstancer.cc File Reference
#include "usd_writer_pointinstancer.hh"
#include "usd_attribute_utils.hh"
#include "usd_utils.hh"
#include "BKE_anonymous_attribute_id.hh"
#include "BKE_collection.hh"
#include "BKE_geometry_set.hh"
#include "BKE_geometry_set_instances.hh"
#include "BKE_instances.hh"
#include "BKE_lib_id.hh"
#include "BKE_report.hh"
#include "BLI_math_euler.hh"
#include "BLI_math_matrix.hh"
#include "DNA_collection_types.h"
#include "DNA_layer_types.h"
#include "DNA_object_types.h"
#include <pxr/base/gf/quatf.h>
#include <pxr/base/gf/vec3d.h>
#include <pxr/base/gf/vec3f.h>
#include <pxr/base/vt/array.h>
#include <pxr/usd/usdGeom/pointInstancer.h>
#include <pxr/usd/usdGeom/primvarsAPI.h>
#include "IO_abstract_hierarchy_iterator.h"

Go to the source code of this file.

Namespaces

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

Functions

template<typename T>
static pxr::VtArray< Tblender::io::usd::DuplicateArray (const pxr::VtArray< T > &original, size_t copies)
template<typename T, typename GetterFunc, typename CreatorFunc>
static void blender::io::usd::DuplicatePerInstanceAttribute (const GetterFunc &getter, const CreatorFunc &creator, size_t copies, const pxr::UsdTimeCode &time)
template<typename T, typename GetterFunc, typename CreatorFunc>
static void blender::io::usd::ExpandAttributePerInstance (const GetterFunc &getter, const CreatorFunc &creator, const Span< std::pair< int, int > > instance_object_map, const pxr::UsdTimeCode &time)