← Back to team overview

yade-users team mailing list archive

Re: [Question #703419]: About the modifyication of the macro YADE_CLASS_BASE_DOC_ATTRS_CTOR in the class of NormPhys and NormshearPhys

 

Question #703419 on Yade changed:
https://answers.launchpad.net/yade/+question/703419

Jan Stránský proposed the following answer:
Have a look at documentation [1].

If it should be array of Vector3r, then it must have different type then Vector3r, the easiest is probably vector<Vector3r>
The name must be valid C++/python variable name (i.e. without brackets).

Or you can make it C++ only, and then expose the name as a property as
e.g. state.pos [2]

Or ... many more options, depending on your needs.

Cheers
Jan

[1] https://yade-dem.org/doc/prog.html#yade-class-base-doc-macro-family
[2] https://gitlab.com/yade-dev/trunk/-/blob/master/core/State.hpp#L87

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.