[Bf-blender-cvs] [33a37c854e3] soc-2021-adaptive-cloth: adaptive_cloth: MeshDiff: add elements
ishbosamiya
noreply at git.blender.org
Mon Aug 30 09:15:08 CEST 2021
Commit: 33a37c854e32a6a6e724d13a3bf997aa3c35ef57
Author: ishbosamiya
Date: Sat Aug 28 16:05:28 2021 +0530
Branches: soc-2021-adaptive-cloth
https://developer.blender.org/rB33a37c854e32a6a6e724d13a3bf997aa3c35ef57
adaptive_cloth: MeshDiff: add elements
Functions to add elements to `added_element`.
===================================================================
M source/blender/blenkernel/BKE_cloth_remesh.hh
===================================================================
diff --git a/source/blender/blenkernel/BKE_cloth_remesh.hh b/source/blender/blenkernel/BKE_cloth_remesh.hh
index 43ea4bd793d..dc459431a51 100644
--- a/source/blender/blenkernel/BKE_cloth_remesh.hh
+++ b/source/blender/blenkernel/BKE_cloth_remesh.hh
@@ -3395,6 +3395,26 @@ template<typename END, typename EVD, typename EED, typename EFD> class MeshDiff
{
}
+ void add_node(const NodeIndex &node_index)
+ {
+ this->added_nodes.append(node_index);
+ }
+
+ void add_vert(const VertIndex &vert_index)
+ {
+ this->added_verts.append(vert_index);
+ }
+
+ void add_edge(const EdgeIndex &edge_index)
+ {
+ this->added_edges.append(edge_index);
+ }
+
+ void add_face(const FaceIndex &face_index)
+ {
+ this->added_faces.append(face_index);
+ }
+
const auto &get_added_nodes() const
{
return this->added_nodes;
More information about the Bf-blender-cvs
mailing list