[Bf-blender-cvs] [fd467923b9d] soc-2021-adaptive-cloth: adaptive_cloth: Edge: make has_vert() const, add get_verts()
ishbosamiya
noreply at git.blender.org
Mon Jul 12 08:23:47 CEST 2021
Commit: fd467923b9d0783064e6f45521e1b9759545dbaf
Author: ishbosamiya
Date: Wed Jul 7 17:50:02 2021 +0530
Branches: soc-2021-adaptive-cloth
https://developer.blender.org/rBfd467923b9d0783064e6f45521e1b9759545dbaf
adaptive_cloth: Edge: make has_vert() const, add get_verts()
===================================================================
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 c110905e512..569b75b636a 100644
--- a/source/blender/blenkernel/BKE_cloth_remesh.hh
+++ b/source/blender/blenkernel/BKE_cloth_remesh.hh
@@ -292,7 +292,7 @@ template<typename T> class Edge {
this->extra_data = extra_data;
}
- bool has_vert(VertIndex vert_index)
+ bool has_vert(VertIndex vert_index) const
{
if (this->verts) {
if (std::get<0>(this->verts.value()) == vert_index ||
@@ -314,6 +314,11 @@ template<typename T> class Edge {
return this->faces;
}
+ const auto &get_verts() const
+ {
+ return this->verts;
+ }
+
friend std::ostream &operator<<(std::ostream &stream, const Edge &edge)
{
stream << "(self_index: " << edge.self_index << ", faces: " << edge.faces
More information about the Bf-blender-cvs
mailing list