← Back to team overview

yade-dev team mailing list archive

Re: read-only attribute

 

On 03/02/11 13:52, Sergei D. wrote:
> Hi (Vaclav)
> How to add a read-only attrubute to a class in order to I can read it
> from python?
> I want to read a facet's normal vector from python.
>
>
Hi,

See for instance Cell.hpp:156

.def_readonly("shearTrsf",&Cell::_shearTrsf,"Current skew+rot
transformation (no resize)")

Bruno

-- 




Follow ups

References