Modifying Clump state.ori and state.pos (initial values)
Considering the following code that considers a Clump-shaped body mimicking a Box-shaped one:
# Initial setup of the bodies:
boxId = O.bodies.append(box((0,0,0),(4,1,1)))
O.bodies[boxId].shape.wire = True
clId = O.bodies.appendClumped([sphere((-3.5+i,0,0),1) for i in range(8)])[0]
yade.qt.View()
input('\nPlease check that the clump-body does mimick the box-body (wire View) at this stage (including orientation) and press ENTER when you''re satisfied\n')
# Rotated (or not) configuration:
for id in (boxId,clId): O.bodies[id].state.ori = Quaternion((0,0,1),pi/6)
print('\nAnd now ?')
the 1st part (before rotating bodies) returns (with yadedaily 20230430-72232190bb81jammy1) :
confirming the similarity between the two twins. But, after modifying state.ori, the 2nd part returns:
and the similarity is lost, at least in the display (Computationally-wise, for contact detection, I have no idea at the moment which configuration the clump does conform to..)
Since this is a bit deceiving for me ;-) I may try at least to update state.ori and/or Clump documentations in the future. Thoughts are much welcome by then.
EDIT: title updated on June 6