[Bf-blender-cvs] [68e22408576] soc-2021-adaptive-cloth: adaptive_cloth: AdaptiveMesh: sewing: dump file after adding edge
ishbosamiya
noreply at git.blender.org
Mon Aug 30 09:15:10 CEST 2021
Commit: 68e2240857654730846712432f104848bf3ab71b
Author: ishbosamiya
Date: Sat Aug 28 17:59:33 2021 +0530
Branches: soc-2021-adaptive-cloth
https://developer.blender.org/rB68e2240857654730846712432f104848bf3ab71b
adaptive_cloth: AdaptiveMesh: sewing: dump file after adding edge
Dump the serialized Mesh after adding the loose (sewing) edge.
===================================================================
M source/blender/blenkernel/intern/cloth_remesh.cc
===================================================================
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());
}
More information about the Bf-blender-cvs
mailing list