← Back to team overview

yade-users team mailing list archive

Re: [Question #686571]: Access to UNV facets

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Przemek,

> Is it possible?

of course :-)

###
from yade import ymport
facets,nodes,connectivity = ymport.unv(...,returnConnectivityTable=True)
# now facets is list of created facets
for f in facets:
   print(f.shape.area)
   print(f.state.pos) # center of inscribed circle, not center of mass (!)
   # whatever else
###

cheers
Jan

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