Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/usd/intern/usd_writer_mesh.h
| Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | private: | ||||
| void write_mesh(HierarchyContext &context, Mesh *mesh); | void write_mesh(HierarchyContext &context, Mesh *mesh); | ||||
| void get_geometry_data(const Mesh *mesh, struct USDMeshData &usd_mesh_data); | void get_geometry_data(const Mesh *mesh, struct USDMeshData &usd_mesh_data); | ||||
| void assign_materials(const HierarchyContext &context, | void assign_materials(const HierarchyContext &context, | ||||
| pxr::UsdGeomMesh usd_mesh, | pxr::UsdGeomMesh usd_mesh, | ||||
| const MaterialFaceGroups &usd_face_groups); | const MaterialFaceGroups &usd_face_groups); | ||||
| void write_uv_maps(const Mesh *mesh, pxr::UsdGeomMesh usd_mesh); | void write_uv_maps(const Mesh *mesh, pxr::UsdGeomMesh usd_mesh); | ||||
| void write_normals(const Mesh *mesh, pxr::UsdGeomMesh usd_mesh); | void write_normals(const Mesh *mesh, pxr::UsdGeomMesh usd_mesh); | ||||
| void write_surface_velocity(Object *object, const Mesh *mesh, pxr::UsdGeomMesh usd_mesh); | void write_surface_velocity(const Mesh *mesh, pxr::UsdGeomMesh usd_mesh); | ||||
| }; | }; | ||||
| class USDMeshWriter : public USDGenericMeshWriter { | class USDMeshWriter : public USDGenericMeshWriter { | ||||
| public: | public: | ||||
| USDMeshWriter(const USDExporterContext &ctx); | USDMeshWriter(const USDExporterContext &ctx); | ||||
| protected: | protected: | ||||
| virtual Mesh *get_export_mesh(Object *object_eval, bool &r_needsfree) override; | virtual Mesh *get_export_mesh(Object *object_eval, bool &r_needsfree) override; | ||||
| }; | }; | ||||
| } // namespace blender::io::usd | } // namespace blender::io::usd | ||||