From 68e2240857654730846712432f104848bf3ab71b Mon Sep 17 00:00:00 2001 From: ishbosamiya Date: Sat, 28 Aug 2021 17:59:33 +0530 Subject: adaptive_cloth: AdaptiveMesh: sewing: dump file after adding edge Dump the serialized Mesh after adding the loose (sewing) edge. --- source/blender/blenkernel/intern/cloth_remesh.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/blender/blenkernel/intern/cloth_remesh.cc b/source/blender/blenkernel/intern/cloth_remesh.cc index 9b7e96135e4..8dc325419be 100644 --- a/source/blender/blenkernel/intern/cloth_remesh.cc +++ b/source/blender/blenkernel/intern/cloth_remesh.cc @@ -876,6 +876,15 @@ class AdaptiveMesh : public Mesh, VertData, EdgeData, internal::Em auto &new_edge = this->add_checked_loose_edge(vert_index, added_verts[0]); this->compute_info_edge_adaptivemesh(new_edge); +#if SHOULD_REMESH_DUMP_FILE + auto after_adding_loose_edge_msgpack = this->serialize(); + auto after_adding_loose_edge_filename = static_remesh_name_gen.get_curr( + "after_adding_loose_edge_" + get_number_as_string(std::get<0>(vert_index.get_raw())) + + "_" + get_number_as_string(std::get<0>(added_verts[0].get_raw()))); + static_remesh_name_gen.gen_next(); + dump_file(after_adding_loose_edge_filename, after_adding_loose_edge_msgpack); +#endif + complete_mesh_diff.add_edge(new_edge.get_self_index()); } -- cgit v1.2.3