New question #691701 on Yade: https://answers.launchpad.net/yade/+question/691701
Hi all, I want to know how to find the reference position of a facet. I use the following code: ################################### x0=0.2;y0=0.2;z0=0.4 cylinderIDS= O.bodies.append(geom.facetCylinder((x0,y0,0.4), radius=0.0125,height=0.05,orientation=Quaternion((1, 0, 0), 0),wallMask=4,segmentsNumber=6, angleRange=None,material=facetMat)) shaftcheck=O.bodies[-2].id print("cylinder is :",cylinderIDS) print("shaft is : ",shaftcheck) print("this is x reference: ",O.bodies[shaftcheck].state.refPos[0]) print("this is y reference: ",O.bodies[shaftcheck].state.refPos[1]) print("this is z reference: ",O.bodies[shaftcheck].state.refPos[2]) print("#####################################################################") the results are: ('cylinder is :', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]) ('shaft is : ', 10) ('this is x reference: ', 0.2097597050800552) ('this is y reference: ', 0.19525366997093271) ('this is z reference: ', 0.38048058983988964) ##################################################################### I don't know how to calculate the reference position. best, Yong -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp