02.07.2013 Views

Scuola di Dottorato di Ricerca in Parodontologia Sperimentale

Scuola di Dottorato di Ricerca in Parodontologia Sperimentale

Scuola di Dottorato di Ricerca in Parodontologia Sperimentale

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appen<strong>di</strong>ce C<br />

function CORD=TRIPLANE4(P,Nm<strong>in</strong>,Nmax,Sec,PmL,PmR,XiL,XiR)<br />

% Section<br />

S=(Sec+1)-(Nm<strong>in</strong>);<br />

% TRIPLANE computes the sets of the coor<strong>di</strong>nates x and y and z for<br />

% the reformattation of the <strong>di</strong>com file of the man<strong>di</strong>bular plane.<br />

%<br />

% Nm<strong>in</strong> is the number of m<strong>in</strong>imal section<br />

% Nmax is the number of maximal section<br />

% Sec is the number of section <strong>in</strong>cluded <strong>in</strong> Nm<strong>in</strong>-Nmax range<br />

% PmL,PmR,XiL and XiR are the characterist man<strong>di</strong>bular po<strong>in</strong>ts<br />

% as matrix 1x3 with x and y expressed as pixel and z expressed<br />

% as number TAC section<br />

% The Tac section is positioned with frontal side downwards and<br />

% the zero of the axis is downwards <strong>in</strong> the left side.<br />

% P is the po<strong>in</strong>t as a matrix 1x3 (x,y and z coor<strong>di</strong>nates)<br />

% Toti Paolo 29/03/2007 19:07$<br />

Xic=(XiL+XiR)./2;;<br />

Pmc=(PmL+PmR)./2;<br />

center=(Pmc+Xic)./2;<br />

PP=Pmc;<br />

PT=Xic;<br />

% plane equation for three po<strong>in</strong>t (jaw plane)<br />

a1=((XiL(:,2)-Pmc(:,2)).*(XiR(:,3)-Pmc(:,3)))-((XiL(:,3)-Pmc(:,3)).*(XiR(:,2)-<br />

Pmc(:,2)));<br />

a2=-((XiL(:,1)-Pmc(:,1)).*(XiR(:,3)-Pmc(:,3)))+((XiR(:,1)-Pmc(:,1)).*(XiL(:,3)-<br />

Pmc(:,3)));<br />

94

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!