← Back to team overview

yade-dev team mailing list archive

[Bug 1031703] Re: "extra" value for bodies

 

>3/ store the string representation of desired variable

Yes that one too. I aprooved when I read it but didn't recall it.
Not sure it would be easier than void pointer though, since it would need a lot of typecasting.
Your example is ok in python but the vector3 can't be used in c++ at this point. Getting arbitrary types from a string in c++ is another story.
I guess Christian has in mind to use e.g. clump volume in some c++ algorithm (right?), else there is little interest in adding variables to bodies.

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1031703

Title:
  "extra" value for bodies

Status in Yet Another Dynamic Engine:
  New

Bug description:
  Hi,

  It would be very helpful, if there would be an "extra" value for every
  body. This value can be set by the user. It must be a very fexible
  value (bool, int, float, vector, array, etc.).

  Example:
  I create a clump, which consists of two hardly overlapping spheres and sometimes I need the volume of the clump (which is not the sum of the volumes of the two spheres in this case). So this could be easily managed by this "extra" value. Where i could set either the volume of the clump as extra value to the clump or i could set the volume fractions as extra values to the spheres.

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1031703/+subscriptions


Follow ups

References