Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorishbosamiya <ishbosamiya@gmail.com>2021-08-28 15:29:33 +0300
committerishbosamiya <ishbosamiya@gmail.com>2021-08-28 15:29:33 +0300
commit68e2240857654730846712432f104848bf3ab71b (patch)
treea6a6d66c10ab1288a60cdcae49977b81ecca5892
parentf2e0b6b21ccd2686d941b0bea06d9b6b66823e1b (diff)
adaptive_cloth: AdaptiveMesh: sewing: dump file after adding edge
Dump the serialized Mesh after adding the loose (sewing) edge.
-rw-r--r--source/blender/blenkernel/intern/cloth_remesh.cc9
1 files changed, 9 insertions, 0 deletions
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<NodeData<END>, 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());
}