Rank: 326201 based on 0 downloads (last 30 days) and 0 file submitted
photo

Florian

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Florian
Updated File Comments Rating
13 Jun 2012 3D Rotation about Shifted Axis Computes/applies rotation about arbitrary 3D line. Author: Matt J

Hi Matt,

thanks for the code. But I've a little problem.

I tried to use your function with this points

P1 = [33.319 -862.139 420.373]
P2 = [550.303 -721.267 667.915]

P3 = [113 -870.591 483.66]

%% Variablendeklaration
deg = -5;
k = [P1(1,1) P2(1,1)
P1(1,2) P2(1,2)
P1(1,3) P2(1,3) ];
x0 = [P1(1,1);P1(1,2);P1(1,3)];
x1 = [P2(1,1);P2(1,2);P3(1,3)];
%%
u = x1 - x0;

%% test
P3_old = [P3(1,1);P3(1,2);P3(1,3)]

%%

[P3new_1, R, t] = AxelRot(P3_old, deg, u, x0)

the result is

P3new_1 =

111.4677
-866.0073
485.9746

I'm making the same rotation in our CAD software (CATIA)-> I'll get this result

P3_CATIA =
111.386
-868.555

Do you have any idea about the differences?
485.872

Contact us