← Back to team overview

yade-dev team mailing list archive

Re: Registration penetrationDepth

 

> can I register the variable _penetrationDepth_ in ScGeom class? So
> that people using this class can access that information directly
> through python..
Just
add .def_readwrite("penetrationDepth",&ScGeom::penerationDepth,"documentation") to the PY block of YADE_CLASS_BASE_DOC_* as explained at the end of
https://www.yade-dem.org/sphinx/prog.html#yade-class-base-doc-macro-family

That way it will not be uselessly saved, but will be accessible.

Cheers, v.





References