← Back to team overview

yade-dev team mailing list archive

[Bug 1111514] Re: utils.box orientation not used in code

 

>How can you know include a box that is rotated by a given angle around
an axis?

q=Quaternion()
q.setFromTwoVectors((1,1,0),(1,0,0))
b.state.ori=q


>the orientation quaternion used as third parameter of utils.box[2] is not used at all in the code

Thank you for reporting this bug. I fixed it in 6279eb1.
So this will do exactly the same as above:

box((0,0,0),(1,0.1,0.1),orientation=q))

** Changed in: yade
     Assignee: (unassigned) => Bruno Chareyre (bruno-chareyre)

** Changed in: yade
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1111514

Title:
  utils.box orientation not used in code

Status in Yet Another Dynamic Engine:
  Fix Released

Bug description:
  Working on Christian Jakobs performance script published int he wiki[1] Christian and I recognized that the orientation quaternion used as third parameter of utils.box[2] is not used at all in the code.
  According to Christian this must be due to a change in code that happened in the last months, because his script worked will before.
  How can you know include a box that is rotated by a given angle around an axis?

  [1] https://yade-dem.org/wiki/Comparisons_with_PFC3D
  [2] https://yade-dem.org/doc/_modules/yade/utils.html#box

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1111514/+subscriptions


References