Commit d954749693d5f5c22e7d5c3dba03aa58be7d7f3d

Authored by Jiaming Guo
1 parent d05dd2b7

add function to change protected members from outside

Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
stim/biomodels/network.h
... ... @@ -218,6 +218,14 @@ public:
218 218 return result;
219 219 }
220 220  
  221 + ///Set radius
  222 + void set_R(unsigned e, std::vector<T> radius) {
  223 + E[e].cylinder<T>::copy_r(radius);
  224 + }
  225 +
  226 + void set_R(unsigned e, unsigned i, T radius) {
  227 + E[e].cylinder<T>::set_r(i, radius);
  228 + }
221 229 //scale the network by some constant value
222 230 // I don't think these work??????
223 231 /*std::vector<vertex> operator*(T s){
... ...