Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/wavefront_obj/exporter/obj_export_mesh.hh
| Context not available. | |||||
| * Polygon aligned array of their smooth groups. | * Polygon aligned array of their smooth groups. | ||||
| */ | */ | ||||
| int *poly_smooth_groups_ = nullptr; | int *poly_smooth_groups_ = nullptr; | ||||
| /** | |||||
| * Order in which the polygons should be written into the file (sorted by material index). | |||||
| */ | |||||
| Vector<int> poly_order_; | |||||
| public: | public: | ||||
| /** | /** | ||||
| Context not available. | |||||
| */ | */ | ||||
| std::optional<std::array<int, 2>> calc_loose_edge_vert_indices(int edge_index) const; | std::optional<std::array<int, 2>> calc_loose_edge_vert_indices(int edge_index) const; | ||||
| /** | |||||
| * Calculate the order in which the polygons should be written into the file (sorted by material index). | |||||
| */ | |||||
| void calc_poly_order(); | |||||
| /** | |||||
| * Remap polygon index according to polygon writing order. | |||||
| * When materials are not being written, the polygon order array | |||||
| * might be empty, in which case remap is a no-op. | |||||
| */ | |||||
| int remap_poly_index(int i) const | |||||
| { | |||||
| return i < 0 || i >= poly_order_.size() ? i : poly_order_[i]; | |||||
| } | |||||
| private: | private: | ||||
| /** | /** | ||||
| * Free the mesh if _the exporter_ created it. | * Free the mesh if _the exporter_ created it. | ||||
| Context not available. | |||||