From d954749693d5f5c22e7d5c3dba03aa58be7d7f3d Mon Sep 17 00:00:00 2001 From: Jiaming Guo Date: Thu, 9 Feb 2017 16:17:13 -0600 Subject: [PATCH] add function to change protected members from outside --- stim/biomodels/network.h | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/stim/biomodels/network.h b/stim/biomodels/network.h index bde6683..432dfbb 100644 --- a/stim/biomodels/network.h +++ b/stim/biomodels/network.h @@ -218,6 +218,14 @@ public: return result; } + ///Set radius + void set_R(unsigned e, std::vector radius) { + E[e].cylinder::copy_r(radius); + } + + void set_R(unsigned e, unsigned i, T radius) { + E[e].cylinder::set_r(i, radius); + } //scale the network by some constant value // I don't think these work?????? /*std::vector operator*(T s){ -- libgit2 0.21.4