[Bf-blender-cvs] [460fea65ada] soc-2021-adaptive-cloth: adaptive_cloth: Mesh elements: get_self_index()

ishbosamiya noreply at git.blender.org
Mon Jul 26 08:17:38 CEST 2021


Commit: 460fea65adaccd88a326dcd383d8c76830463da7
Author: ishbosamiya
Date:   Mon Jul 19 21:55:00 2021 +0530
Branches: soc-2021-adaptive-cloth
https://developer.blender.org/rB460fea65adaccd88a326dcd383d8c76830463da7

adaptive_cloth: Mesh elements: get_self_index()

===================================================================

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 cf15b7a3146..57d5ea7680a 100644
--- a/source/blender/blenkernel/BKE_cloth_remesh.hh
+++ b/source/blender/blenkernel/BKE_cloth_remesh.hh
@@ -201,6 +201,11 @@ template<typename T> class Node {
   {
   }
 
+  const auto &get_self_index() const
+  {
+    return this->self_index;
+  }
+
   void set_extra_data(T extra_data)
   {
     this->extra_data = extra_data;
@@ -268,6 +273,11 @@ template<typename T> class Vert {
   {
   }
 
+  const auto &get_self_index() const
+  {
+    return this->self_index;
+  }
+
   const auto &get_uv() const
   {
     return this->uv;
@@ -351,6 +361,11 @@ template<typename T> class Edge {
   {
   }
 
+  const auto &get_self_index() const
+  {
+    return this->self_index;
+  }
+
   void set_extra_data(T extra_data)
   {
     this->extra_data = extra_data;
@@ -439,6 +454,11 @@ template<typename T> class Face {
   {
   }
 
+  const auto &get_self_index() const
+  {
+    return this->self_index;
+  }
+
   void set_extra_data(T extra_data)
   {
     this->extra_data = extra_data;



More information about the Bf-blender-cvs mailing list