← Back to team overview

yade-dev team mailing list archive

vector<Vector3r> from python

 

Hi.
Vaclav, I have vector<Vector3r> attribute in a class. How can I create this class from python?
Now I do, for example, as
b.shape=GeometricalModel('Facet',{'vertices':[[1,0,0],[0,0,1],[0,0,-1]],'diffuseColor':color,'wire':wire,'visible':True})
but I get "RuntimeError: Could not extract type double"

-- 
Best regards, Sergei D.



Follow ups