21 std::set<std::pair<pxr::SdfPath, Object *>> &prototype_paths,
22 std::unique_ptr<USDAbstractWriter> base_writer);
30 std::set<std::pair<pxr::SdfPath,
Object *>> prototype_paths_;
31 const std::
string proto_name_ =
"Prototype";
33 void write_attribute_data(const
bke::AttributeIter &attr,
34 const pxr::UsdGeomPointInstancer &usd_instancer,
35 const pxr::UsdTimeCode timecode);
37 void process_instance_reference(
40 std::map<std::
string,
int> &proto_index_map,
41 std::map<std::
string,
int> &final_proto_index_map,
42 std::map<std::
string, pxr::SdfPath> &proto_path_map,
43 pxr::UsdStageRefPtr stage,
44 pxr::VtArray<
int> &proto_indices,
45 std::
vector<std::pair<
int,
int>> &collection_instance_object_count_map);
47 void compact_prototypes(const pxr::UsdGeomPointInstancer &usd_instancer,
48 const pxr::UsdTimeCode timecode,
49 const pxr::SdfPathVector &proto_paths);
51 void override_transform(pxr::UsdStageRefPtr stage,
52 const pxr::SdfPath &proto_path,
55 void handle_collection_prototypes(
56 const pxr::UsdGeomPointInstancer &usd_instancer,
57 const pxr::UsdTimeCode timecode,
59 const std::
vector<std::pair<
int,
int>> &collection_instance_object_count_map);