Shockdesigner331
Mechanical
- May 13, 2005
- 69
Hello all,
I've created a 3D simulation of a system I'm working on. I can easily output the main bodies rotation (all three axis) and translation (x,y,z). Getting my program to keep track of points on the body is a pain. I'm thinking that I can just write a matlab program that uses the points (relative to the C.G) and the translation, rotation files to come up with the displacements of the points on the body.
I was thinking that:
DeltaX = deltaCGx-(z*roty-Y*rotz)
DeltaY = deltaCGy-(x*rotz-z*rotx)
DeltaZ = deltaCGz-(y*rotx-x*roty)
where Delta X is my point of interest x displacement
deltaCGx is the CG x displacement (read from file)
x, y, z = coordinates of points of interest
rotx = rotation about x axis.
Any one have any thoughts? Any other ideas on how to do this? Thanks
I've created a 3D simulation of a system I'm working on. I can easily output the main bodies rotation (all three axis) and translation (x,y,z). Getting my program to keep track of points on the body is a pain. I'm thinking that I can just write a matlab program that uses the points (relative to the C.G) and the translation, rotation files to come up with the displacements of the points on the body.
I was thinking that:
DeltaX = deltaCGx-(z*roty-Y*rotz)
DeltaY = deltaCGy-(x*rotz-z*rotx)
DeltaZ = deltaCGz-(y*rotx-x*roty)
where Delta X is my point of interest x displacement
deltaCGx is the CG x displacement (read from file)
x, y, z = coordinates of points of interest
rotx = rotation about x axis.
Any one have any thoughts? Any other ideas on how to do this? Thanks