There's something wrong with the function shape.setVertices() of polyhedra.
Hi there, I find that there will be something wrong when I use shape.setVertices() to update the coords of polyhedra element.
The following is a simple example:
a = [[0,0,0]
b = [[0,0,0]
The I created two tetraPoly Elements:
The first one:
O.bodies.
And the second one:
O.bodies.
We can get the two elements' geometrical parameters:
/******** The first one: *********/
Local coords:
[Vector3(
Vector3(
Vector3(
Vector3(
Center position:
Vector3(
And orientation:
Quaternion(
/******** The second one: *********/
Local coords:
[Vector3(
Vector3(
Vector3(
Vector3(
Center position:
Vector3(
And orientation:
Quaternion(
Then, we use 'shape.
O.bodies[
/******** The first one's geometrical parameters after calling 'setVertices': *********/
Local coords:
[Vector3(
Vector3(
Vector3(
Vector3(
Center position:
Vector3(
And orientation:
Quaternion(
It seems that the 'setVertices() function only changed the Local coords of the element, leaving Center position and orientation of the element unchanged, which will make the global coordinates of the element go wrong.
Could you please help me find out a solution to correct this? Thank you very much!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask MikeZhao for more information if necessary.